-
Notifications
You must be signed in to change notification settings - Fork 15k
Open
Labels
clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.code-quality
Description
From the clang testsuite, file ./Analysis/analysis-after-multiple-dtors.cpp
does this with a valgrind version of recent clang:
test $ valgrind -q --trace-children=yes ~/llvm/results/bin/clang++ -c -w ./Analysis/analysis-after-multiple-dtors.cpp
==424675== Conditional jump or move depends on uninitialised value(s)
==424675== at 0x2429FF9: clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributesForDefinition(clang::Decl const*, llvm::Function*) (CodeGenModule.cpp:2531)
==424675== by 0x26F5B23: clang::CodeGen::CodeGenModule::codegenCXXStructor(clang::GlobalDecl) (CGCXX.cpp:216)
The source code line in error is
if (isa<CXXMethodDecl>(D) && F->getPointerAlignment(getDataLayout()) < 2)
The bug first seems to occur sometime between git hash 1579e9c and 8364659.
Metadata
Metadata
Assignees
Labels
clang:codegenIR generation bugs: mangling, exceptions, etc.IR generation bugs: mangling, exceptions, etc.code-quality