Skip to content

Commit

Permalink
Call CreateTempAllocaWithoutCast for ActiveFlag
Browse files Browse the repository at this point in the history
This is partial re-commit of r332982.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334879 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
yxsamliu committed Jun 16, 2018
1 parent cefa016 commit 5e81b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/CGCleanup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5e81b15

Please sign in to comment.