summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/conditional-temporaries.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-05-22 14:36:26 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-05-22 14:36:26 +0000
commit8a60e5db701ed04926e120142dbb7bdb0528010a (patch)
tree5de222c863122e3d87ded29cff42f8178d39c5fe /clang/test/CodeGenCXX/conditional-temporaries.cpp
parent488ebfb73224c8dc082aea56562a007b660426e6 (diff)
downloadbcm5719-llvm-8a60e5db701ed04926e120142dbb7bdb0528010a.tar.gz
bcm5719-llvm-8a60e5db701ed04926e120142dbb7bdb0528010a.zip
Call CreateTempMemWithoutCast for ActiveFlag
Introduced CreateMemTempWithoutCast and CreateTemporaryAllocaWithoutCast to emit alloca without casting to default addr space. ActiveFlag is a temporary variable emitted for clean up. It is defined as AllocaInst* type and there is a cast to AlllocaInst in SetActiveFlag. An alloca casted to generic pointer causes assertion in SetActiveFlag. Since there is only load/store of ActiveFlag, it is safe to use the original alloca, therefore use CreateMemTempWithoutCast is called. Differential Revision: https://reviews.llvm.org/D47099 llvm-svn: 332982
Diffstat (limited to 'clang/test/CodeGenCXX/conditional-temporaries.cpp')
-rw-r--r--clang/test/CodeGenCXX/conditional-temporaries.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/conditional-temporaries.cpp b/clang/test/CodeGenCXX/conditional-temporaries.cpp
index a3cc2fef1e8..790a5344fe5 100644
--- a/clang/test/CodeGenCXX/conditional-temporaries.cpp
+++ b/clang/test/CodeGenCXX/conditional-temporaries.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 -O3 | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=amdgcn-amd-amdhsa -O3 | FileCheck %s
namespace {
OpenPOWER on IntegriCloud