From 5e81b15024698f595c10161f27bb4dce4fefa4bc Mon Sep 17 00:00:00 2001 From: Yaxun Liu Date: Sat, 16 Jun 2018 01:20:52 +0000 Subject: [PATCH] Call CreateTempAllocaWithoutCast for ActiveFlag 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CGCleanup.cpp b/lib/CodeGen/CGCleanup.cpp index 92745bcdcd..34bfd07caf 100644 --- a/lib/CodeGen/CGCleanup.cpp +++ b/lib/CodeGen/CGCleanup.cpp @@ -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. -- 2.50.1