You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spec2k6 462.libquantum build fail.
one of the errors can be reproduce by the following code:
struct x_struct {
int y;
int z;
};
typedef struct x_struct x;
x foo(int a)
{
x m;
if (a)
exit(1);
return m;
}
cmd
xcalcc -c a.c
error:
2023-10-28 15:56:45,554 - xcalcc - ERROR - /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/llc: error: /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/llc: a.O.ll:18:7: error: value doesn't match function result type '%x_struct = type { i32, i32 }'
ret void
^ (xcalcc:630)
The text was updated successfully, but these errors were encountered:
zengdage
added a commit
to zengdage/open64
that referenced
this issue
Jan 4, 2024
The built-in exit function should be regared as unreachable function.
1. The llc will crash if compile the code like that:
```
typedef struct quantum_matrix_struct {
int rows;
int cols;
void *t;
} quantum_matrix;
quantum_matrix quantum_new_matrix(void)
{
quantum_matrix m;
m.t = calloc(1, sizeof(16));
if(!m.t) {
exit(1);
}
return m;
}
```
2. Error Log:
```
llc: matrix3.O.ll:22:7: error: value doesn't match function result type '%quantum_matrix_struct = type { i32, i32, ptr }'
```
Signed-off-by: Zhijin Zeng <[email protected]>
spec2k6 462.libquantum build fail.
one of the errors can be reproduce by the following code:
cmd
error:
The text was updated successfully, but these errors were encountered: