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 1579e9ca9ce17364963861517fecf13b00fe4d8a and 83646590afe222cfdd792514854549077e17b005.
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
The bug first seems to occur sometime between git hash 1579e9ca9ce17364963861517fecf13b00fe4d8a and 83646590afe222cfdd792514854549077e17b005.