summaryrefslogtreecommitdiff
path: root/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
commit711395527e6b19d4bf26e22586f2c13591970ba6 (patch)
tree8b71a481c614bf5fdf6c107cbcd88233568fe332 /lib/CodeGen/ShadowStackGC.cpp
parent26bcc701a2dd7007a5fd16aae9028b9b57e8eecd (diff)
downloadllvm-711395527e6b19d4bf26e22586f2c13591970ba6.tar.gz
llvm-711395527e6b19d4bf26e22586f2c13591970ba6.tar.bz2
llvm-711395527e6b19d4bf26e22586f2c13591970ba6.tar.xz
Use the C personality function instead of the C++ personality function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ShadowStackGC.cpp')
-rw-r--r--lib/CodeGen/ShadowStackGC.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/ShadowStackGC.cpp b/lib/CodeGen/ShadowStackGC.cpp
index e2919d3583..2609256c8f 100644
--- a/lib/CodeGen/ShadowStackGC.cpp
+++ b/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",