Skip to content

Commit a07bf80

Browse files
committed
[clang][wip] Add freeze poison emission to local vector allocation
1 parent 9983107 commit a07bf80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
15981598
assert(!emission.useLifetimeMarkers());
15991599
}
16001600
if ((allocaTy->isIntegerTy() || allocaTy->isFloatingPointTy() ||
1601-
allocaTy->isPointerTy()) &&
1601+
allocaTy->isPointerTy() || allocaTy->isVectorTy()) &&
16021602
HaveInsertPoint()) {
16031603
auto Freeze = Builder.CreateFreeze(llvm::PoisonValue::get(allocaTy),
16041604
"freeze.poison");

0 commit comments

Comments
 (0)