http://llvm.org/bugs/show_bug.cgi?id=2977
Summary: new type legalizer fails to codegen some va_args
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
The following code crashes llc:
define i8* @ap_php_conv_p2(){
entry:
%ap.addr = alloca i8* ; <i8**> [#uses=36]
br label %sw.bb301
sw.bb301:
%0 = va_arg i8** %ap.addr, i64 ; <i64> [#uses=1]
br label %sw.bb301
}
with the error:
ExpandIntegerResult #0: 0x906fc34: i64,ch = vaarg 0x906fa08, 0x906fbac,
0x906fb24
llc: LegalizeIntegerTypes.cpp:951: void
llvm::DAGTypeLegalizer::ExpandIntegerResult(llvm::SDNode*, unsigned int):
Assertion `0 && "Do not know how to expand the result of this operator!"'
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs