[LLVMbugs] [Bug 1991] New: Assertion `E && !hasAggregateLLVMType(E->getType()) && " Invalid scalar expression to emit"' failed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 6 12:32:45 PST 2008


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

           Summary: Assertion `E && !hasAggregateLLVMType(E->getType()) &&
                    "Invalid scalar expression to emit"' failed
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: compile-fail
          Severity: enhancement
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1382)
 --> (http://llvm.org/bugs/attachment.cgi?id=1382)
test case (delta reduced)

nuno at linux /tmp/llvm $ clang -emit-llvm a.c
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((anonymous namespace)::PrintStackTrace()+0x22)[0x84eb458]
clang((anonymous namespace)::SignalHandler(int)+0x110)[0x84eb71c]
[0xb7f66420]
/lib/libc.so.6(abort+0x108)[0xb7d00978]
/lib/libc.so.6(__assert_fail+0xf5)[0xb7cf87b5]
clang(clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr
const*)+0x7e)[0x8308346]
clang[0x82fe1e7]
clang(clang::StmtVisitor<(anonymous namespace)::AggExprEmitter,
void>::Visit(clang::Stmt*)+0x941)[0x830034d]
clang(clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
llvm::Value*, bool)+0x6c)[0x82fe8c2]
clang(clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl(clang::BlockVarDecl
const&)+0x25d)[0x82f8199]
clang(clang::CodeGen::CodeGenFunction::EmitBlockVarDecl(clang::BlockVarDecl
const&)+0x9e)[0x82f84cc]
clang(clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl
const&)+0xaf)[0x82f85a3]
clang(clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt
const&)+0x28)[0x830d72e]
clang(clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)+0x272)[0x830df9c]
clang(clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt
const&, bool, llvm::Value*, bool)+0x97)[0x830f45d]
clang(clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)+0x177)[0x830dea1]
clang(clang::CodeGen::CodeGenFunction::GenerateCode(clang::FunctionDecl
const*)+0x3be)[0x82f646c]
clang(clang::CodeGen::CodeGenModule::EmitFunction(clang::FunctionDecl
const*)+0x47)[0x82e3a7f]
clang((anonymous
namespace)::CodeGenerator::HandleTopLevelDecl(clang::Decl*)+0x45)[0x82e281f]


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