diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-09-22 17:56:40 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-09-22 17:56:40 +0000 |
commit | a58fde665ad5c9e0e39b2dcec25cd4ef348b0190 (patch) | |
tree | 712f98084e07ff233f5e40f03c0d8495cf976cb4 /llvm/lib/CodeGen/ShadowStackGC.cpp | |
parent | da9740061b23f8b14256b8e4f15e118998f79144 (diff) | |
download | bcm5719-llvm-a58fde665ad5c9e0e39b2dcec25cd4ef348b0190.tar.gz bcm5719-llvm-a58fde665ad5c9e0e39b2dcec25cd4ef348b0190.zip |
Use the C personality function instead of the C++ personality function.
llvm-svn: 140318
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r-- | llvm/lib/CodeGen/ShadowStackGC.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackGC.cpp b/llvm/lib/CodeGen/ShadowStackGC.cpp index e2919d3583c..2609256c8ff 100644 --- a/llvm/lib/CodeGen/ShadowStackGC.cpp +++ b/llvm/lib/CodeGen/ShadowStackGC.cpp @@ -145,11 +145,9 @@ namespace { BasicBlock *CleanupBB = BasicBlock::Create(C, CleanupBBName, &F); Type *ExnTy = StructType::get(Type::getInt8PtrTy(C), Type::getInt32Ty(C), NULL); - // FIXME: Assuming the C++ personality function probably isn't the best - // thing in the world. Constant *PersFn = F.getParent()-> - getOrInsertFunction("__gxx_personality_v0", + getOrInsertFunction("__gcc_personality_v0", FunctionType::get(Type::getInt32Ty(C), true)); LandingPadInst *LPad = LandingPadInst::Create(ExnTy, PersFn, 1, "cleanup.lpad", |