http://llvm.org/bugs/show_bug.cgi?id=5186
Summary: hello.cpp && lli: Addr && "Code generation didn't add
function to GlobalAddress table!"
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=3655)
--> (http://llvm.org/bugs/attachment.cgi?id=3655)
bitcode that causes the assertion
Steps to reproduce:
1) cat > testcase.cpp <<EOF
#include <iostream>
int main()
{
std::cout << "hello world\n";
return 0;
}
EOF
2) llvm-g++ hello.cpp -emit-llvm -c -o hello.bc
3) lli hello.bc
Expected results:
3) the program prints "hello world"
Actual results:
3) lli prints
lli: JIT.cpp:673: virtual void*
llvm::JIT::getPointerToFunction(llvm::Function*): Assertion `Addr && "Code
generation didn't add function to GlobalAddress table!"' failed.
0 lli 0x087c5d98
Stack dump:
0. Program arguments: lli hello.bc
Aborted (core dumped)
More info:
1) "clang hello.cpp -emit-llvm -c -o hello2.bc hello.bc" and "lli hello2.bc"
prints "hello world"
2) Version information:
llvm-gcc r83879
llvm r84032
clang r83964
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs