[LLVMbugs] [Bug 1990] New: codegen: structures with bitfields trigger an assertion

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Feb 6 12:20:11 PST 2008


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

           Summary: codegen: structures with bitfields trigger an assertion
           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=1381)
 --> (http://llvm.org/bugs/attachment.cgi?id=1381)
test case (delta reduced)

nuno at linux /tmp/llvm $ clang -emit-llvm a.c
clang: /cvs/llvm/include/llvm/ADT/APInt.h:377: static llvm::APInt
llvm::APInt::getBitsSet(uint32_t, uint32_t, uint32_t): Assertion `hiBit <
numBits && "hiBit 
out of range"' failed.
clang((anonymous namespace)::PrintStackTrace()+0x22)[0x84eb458]
clang((anonymous namespace)::SignalHandler(int)+0x110)[0x84eb71c]
[0xb7eea420]
/lib/libc.so.6(abort+0x108)[0xb7c84978]
/lib/libc.so.6(__assert_fail+0xf5)[0xb7c7c7b5]
clang(llvm::APInt::getBitsSet(unsigned int, unsigned int, unsigned
int)+0x33)[0x82fda77]
clang(clang::CodeGen::CodeGenFunction::EmitStoreThroughBitfieldLValue(clang::CodeGen::RValue,
clang::CodeGen::LValue, clang::QualType)+0x110)[0x82f93d2]
clang(clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue(clang::CodeGen::RValue,
clang::CodeGen::LValue, clang::QualType)+0x171)[0x82f9609]
clang[0x830895b]
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