[LLVMbugs] [Bug 1989] New: " All operands to PHI node must be the same type as the PHI node" assertion triggered

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 6 12:05:17 PST 2008


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

           Summary: "All operands to PHI node must be the same type as the
                    PHI node" assertion triggered
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            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=1380)
 --> (http://llvm.org/bugs/attachment.cgi?id=1380)
test case

nuno at linux /tmp/llvm $ clang -emit-llvm a.c
clang: /cvs/llvm/include/llvm/Instructions.h:1312: void
llvm::PHINode::addIncoming(llvm::Value*, llvm::BasicBlock*): Assertion
`getType() == V->getType() && 
"All operands to PHI node must be the same type as the PHI node!"' failed.
clang((anonymous namespace)::PrintStackTrace()+0x22)[0x84eb458]
clang((anonymous namespace)::SignalHandler(int)+0x110)[0x84eb71c]
[0xb7fb9420]
/lib/libc.so.6(abort+0x108)[0xb7d53978]
/lib/libc.so.6(__assert_fail+0xf5)[0xb7d4b7b5]
clang(llvm::PHINode::addIncoming(llvm::Value*,
llvm::BasicBlock*)+0x62)[0x8302a70]
clang[0x8308851]
clang(clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter,
llvm::Value*>::Visit(clang::Stmt*)+0x9ea)[0x830ba3a]
clang[0x830bc6c]
clang(clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter,
llvm::Value*>::Visit(clang::Stmt*)+0x900)[0x830b950]
clang[0x8307e8f]
clang[0x83082b9]
clang(clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter,
llvm::Value*>::Visit(clang::Stmt*)+0xa04)[0x830ba54]
clang[0x83088e7]
clang(clang::StmtVisitor<(anonymous namespace)::ScalarExprEmitter,
llvm::Value*>::Visit(clang::Stmt*)+0x248)[0x830b298]
clang(clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr
const*)+0x55)[0x830831d]
clang(clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)+0xa0)[0x830ddca]
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