-
Notifications
You must be signed in to change notification settings - Fork 15k
Closed
Labels
clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partyVerified by a second partycrash-on-validregression
Description
Given this source code:
void f()
{
static _BitInt(130) p = {};
}then recent clang trunk does this:
$ clang -c bug38.c
clang: /home/dcb38/llvm/trunk/clang/lib/CodeGen/CGDecl.cpp:366: llvm::GlobalVariable* clang::CodeGen::CodeGenFunction::AddInitializerToStaticVarDecl(const clang
::VarDecl&, llvm::GlobalVariable*): Assertion `VarSize == CstSize && "Emitted constant has unexpected size"' failed.A slightly smaller size of 120 seems to work ok. It looks like the
boundary size is likely to be 128 or so.
If this is a fixed boundary, a tidy "not implemented" error message
is better than an assertion fail and a crash.
Metadata
Metadata
Assignees
Labels
clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partyVerified by a second partycrash-on-validregression