We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eebe30 commit c1b54d2Copy full SHA for c1b54d2
clang/lib/CodeGen/CGDecl.cpp
@@ -1597,7 +1597,8 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
1597
} else {
1598
assert(!emission.useLifetimeMarkers());
1599
}
1600
- if ((allocaTy->isIntegerTy() || allocaTy->isFloatingPointTy()) &&
+ if ((allocaTy->isIntegerTy() || allocaTy->isFloatingPointTy() ||
1601
+ allocaTy->isPointerTy()) &&
1602
HaveInsertPoint()) {
1603
auto Freeze = Builder.CreateFreeze(llvm::PoisonValue::get(allocaTy),
1604
"freeze.poison");
0 commit comments