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 c8dddc0 commit c7ccc54Copy full SHA for c7ccc54
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() && HaveInsertPoint()) {
+ if ((allocaTy->isIntegerTy() || allocaTy->isFloatingPointTy()) &&
1601
+ HaveInsertPoint()) {
1602
auto Freeze = Builder.CreateFreeze(llvm::PoisonValue::get(allocaTy),
1603
"freeze.poison");
1604
Builder.CreateStore(Freeze, address);
0 commit comments