http://llvm.org/bugs/show_bug.cgi?id=22383
Bug ID: 22383
Summary: Invalid constantexpr bitcast when compiling for
-target nvptx -x cuda
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Compiling this one-line file example.cpp:
__attribute__((device)) __attribute__((__used__)) int a[] = {};
with r227430:
clang -target nvptx -x cuda example.cpp -S -Xclang -fcuda-is-device
results in:
Assertion failed: CastInst::castIsValid(Instruction::BitCast, C, DstTy) &&
"Invalid constantexpr bitcast!", file C:\llvm-clean\lib\IR\Constants.cpp, line
1796
printing List[0] in emitUsed is:
@a = addrspace(1) global [0 x i32] zeroinitializer, align 4
--
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