Runtime error

Hi Developer,

I have wrote simple program called test.c as follows.
int a, b;
int main() {
return a+b;

Compiled with clang command to produce test.ll file which is attached below,
$clang -cc1 test.c -emit-llvm

test.ll (798 Bytes)

The clang you’re using is not the same version as the llc you built.
It seems quite older.
You’ll be more successful with:

clang -c -emit-llvm test.c -o test.bc


Your datalayout is invalid.