summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ShadowStackGC.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-09-22 17:56:40 +0000
committerBill Wendling <isanbard@gmail.com>2011-09-22 17:56:40 +0000
commita58fde665ad5c9e0e39b2dcec25cd4ef348b0190 (patch)
tree712f98084e07ff233f5e40f03c0d8495cf976cb4 /llvm/lib/CodeGen/ShadowStackGC.cpp
parentda9740061b23f8b14256b8e4f15e118998f79144 (diff)
downloadbcm5719-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.cpp4
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",
OpenPOWER on IntegriCloud