Runtime error

Hi Developer,

I have wrote simple program called test.c as follows.
int a, b;
int main() {
a=10;
b=10;
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

(+LLVM-dev)

Your datalayout is invalid.