diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-04-17 20:03:11 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-04-17 20:03:11 +0000 |
commit | 7f7f323e4fc561555f7521131559ca47bcde4184 (patch) | |
tree | 88c716b3652e1e2ca8ec69377d921b4a557fc019 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 25bdb98a9865e3046d161279aaac915818f8ad8e (diff) | |
download | llvm-7f7f323e4fc561555f7521131559ca47bcde4184.zip llvm-7f7f323e4fc561555f7521131559ca47bcde4184.tar.gz llvm-7f7f323e4fc561555f7521131559ca47bcde4184.tar.bz2 |
CodeGen: Let lifetime intrinsic use alloca address space
Differential Revision: https://reviews.llvm.org/D31717
llvm-svn: 300485
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d48bff9..d69ece8 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -111,6 +111,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const HeaderSearchOptions &HSO, C.getTargetInfo().getMaxPointerWidth()); Int8PtrTy = Int8Ty->getPointerTo(0); Int8PtrPtrTy = Int8PtrTy->getPointerTo(0); + AllocaInt8PtrTy = Int8Ty->getPointerTo( + M.getDataLayout().getAllocaAddrSpace()); RuntimeCC = getTargetCodeGenInfo().getABIInfo().getRuntimeCC(); BuiltinCC = getTargetCodeGenInfo().getABIInfo().getBuiltinCC(); |