[LLVMbugs] [Bug 7761] New: llc gives me "LLVM ERROR: Invalid primitive type"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 30 12:25:48 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7761
Summary: llc gives me "LLVM ERROR: Invalid primitive type"
Product: tools
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jingl1345 at gmail.com
CC: llvmbugs at cs.uiuc.edu
I have:
int main()
{
int i = 1;
}
in test.c.
Then:
llvm-gcc -emit-llvm -O0 -c test.c -o test.bc -g
llc -march=cpp test.bc
gives me:
LLVM ERROR: Invalid primitive type
This only happens when I use the "-g".
Duncan Sands reported the following in the maillist:
Yes, it is a bug. In fact LLVM from subversion from a few days ago
crashes even without -march=cpp:
$ llc test.bc
llc: llvm/include/llvm/Support/Casting.h:202: typename llvm::cast_retty<To,
From>::ret_type llvm::cast(const Y&) [with X = llvm::MDNode, Y = llvm::Value*]:
Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
--
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.
More information about the llvm-bugs
mailing list