diff options
author | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2019-07-22 12:50:30 +0000 |
---|---|---|
committer | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2019-07-22 12:50:30 +0000 |
commit | 8c5e6fa6575a57765248c158ddf88e4e383afd88 (patch) | |
tree | d25419d1cbf09faba4382aeba58404133266f62f /clang/lib/CodeGen/CGException.cpp | |
parent | 1f5712ebb5d4e8fe5373d57f13dfdae178f8096a (diff) | |
download | bcm5719-llvm-8c5e6fa6575a57765248c158ddf88e4e383afd88.tar.gz bcm5719-llvm-8c5e6fa6575a57765248c158ddf88e4e383afd88.zip |
Updated the signature for some stack related intrinsics (CLANG)
Modified the intrinsics
int_addressofreturnaddress,
int_frameaddress & int_sponentry.
This commit depends on the changes in rL366679
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D64563
llvm-svn: 366683
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 3b7a88a0b76..4c94cfb2334 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1774,7 +1774,8 @@ void CodeGenFunction::EmitCapturedLocals(CodeGenFunction &ParentCGF, // EH registration is passed in as the EBP physical register. We can // recover that with llvm.frameaddress(1). EntryFP = Builder.CreateCall( - CGM.getIntrinsic(llvm::Intrinsic::frameaddress), {Builder.getInt32(1)}); + CGM.getIntrinsic(llvm::Intrinsic::frameaddress, AllocaInt8PtrTy), + {Builder.getInt32(1)}); } else { // Otherwise, for x64 and 32-bit finally functions, the parent FP is the // second parameter. |