diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-05-22 14:36:26 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-05-22 14:36:26 +0000 |
| commit | 8a60e5db701ed04926e120142dbb7bdb0528010a (patch) | |
| tree | 5de222c863122e3d87ded29cff42f8178d39c5fe /llvm/utils/lit | |
| parent | 488ebfb73224c8dc082aea56562a007b660426e6 (diff) | |
| download | bcm5719-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 'llvm/utils/lit')
0 files changed, 0 insertions, 0 deletions

