[LLVMbugs] [Bug 2049] New: clang: CGExprScalar.cpp:1060: llvm::Value* clang::CodeGen:: CodeGenFunction::EmitScalarExpr(const clang::Expr*): Assertion `E && !hasAggregateLLVMType(E->getType()) && " Invalid scalar expression to emit"' failed.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Feb 16 04:15:45 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=2049

           Summary: clang: CGExprScalar.cpp:1060: llvm::Value*
                    clang::CodeGen::CodeGenFunction::EmitScalarExpr(const
                    clang::Expr*): Assertion `E && !hasAggregateLLVMType(E-
                    >getType()) && "Invalid scalar expression to emit"'
                    failed.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1413)
 --> (http://llvm.org/bugs/attachment.cgi?id=1413)
reduced testcase

Using clang SVN r47211, llvm SVN r47211 I get a codegen assert failure:

$ uname -a
Linux lightspeed2 2.6.24-1-amd64 #1 SMP Mon Feb 11 13:47:43 UTC 2008 x86_64
GNU/Linux

$ clang -emit-llvm-bc testcase-min.i
clang: CGExprScalar.cpp:1060: llvm::Value*
clang::CodeGen::CodeGenFunction::EmitScalarExpr(const clang::Expr*): Assertion
`E && !hasAggregateLLVMType(E->getType()) && "Invalid scalar expression to
emit"' failed.
clang[0x68b306]
/lib/libc.so.6[0x3491231240]
/lib/libc.so.6(gsignal+0x35)[0x34912311d5]
/lib/libc.so.6(abort+0x110)[0x3491232680]
/lib/libc.so.6(__assert_fail+0xef)[0x349122a75f]
clang(_ZN5clang7CodeGen15CodeGenFunction14EmitScalarExprEPKNS_4ExprE+0x3f)[0x4d585f]
clang[0x4c918c]
clang(_ZN5clang7CodeGen15CodeGenFunction11EmitAggExprEPKNS_4ExprEPN4llvm5ValueEb+0x72)[0x4c9762]
clang(_ZN5clang7CodeGen15CodeGenFunction8EmitStmtEPKNS_4StmtE+0x13c)[0x4db38c]
clang(_ZN5clang7CodeGen15CodeGenFunction16EmitCompoundStmtERKNS_12CompoundStmtEbPN4llvm5ValueEb+0x71)[0x4dccf1]
clang(_ZN5clang7CodeGen15CodeGenFunction8EmitStmtEPKNS_4StmtE+0x2bb)[0x4db50b]
clang(_ZN5clang7CodeGen15CodeGenFunction12GenerateCodeEPKNS_12FunctionDeclE+0x2ed)[0x4c0d5d]
clang(_ZN5clang7CodeGen13CodeGenModule12EmitFunctionEPKNS_12FunctionDeclE+0x33)[0x4b3903]
clang[0x4b33cb]
clang(_ZN5clang8ParseASTERNS_12PreprocessorEPNS_11ASTConsumerEb+0x446)[0x513ab6]
clang[0x4aa0df]
clang(main+0xa3a)[0x4acaea]
/lib/libc.so.6(__libc_start_main+0xf4)[0x349121e1c4]
clang[0x48e789]
Aborted


-- 
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