]> granicus.if.org Git - clang/commitdiff
Call CreateTempAllocaWithoutCast for ActiveFlag
authorYaxun Liu <Yaxun.Liu@amd.com>
Sat, 16 Jun 2018 01:20:52 +0000 (01:20 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Sat, 16 Jun 2018 01:20:52 +0000 (01:20 +0000)
This is partial re-commit of r332982.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCleanup.cpp

index 92745bcdcd3e84b06d8aff65248b86ff3218b083..34bfd07caf8515de87c7be20eebafff703b8b3eb 100644 (file)
@@ -283,8 +283,8 @@ void EHScopeStack::popNullFixups() {
 
 void CodeGenFunction::initFullExprCleanup() {
   // Create a variable to decide whether the cleanup needs to be run.
-  Address active = CreateTempAlloca(Builder.getInt1Ty(), CharUnits::One(),
-                                    "cleanup.cond");
+  Address active = CreateTempAllocaWithoutCast(
+      Builder.getInt1Ty(), CharUnits::One(), "cleanup.cond");
 
   // Initialize it to false at a site that's guaranteed to be run
   // before each evaluation.