summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-06-16 01:20:52 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-06-16 01:20:52 +0000
commitcbd80f49d5f8298d5c7e35db50e03d79eac50ffa (patch)
tree3e1172f846f5f0350e9f772e6b5afc0e859529f4
parent3f5490af219c2f5d986e4f28c671c427110b5d78 (diff)
downloadbcm5719-llvm-cbd80f49d5f8298d5c7e35db50e03d79eac50ffa.tar.gz
bcm5719-llvm-cbd80f49d5f8298d5c7e35db50e03d79eac50ffa.zip
Call CreateTempAllocaWithoutCast for ActiveFlag
This is partial re-commit of r332982. llvm-svn: 334879
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index 92745bcdcd3..34bfd07caf8 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud