From a58fde665ad5c9e0e39b2dcec25cd4ef348b0190 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 22 Sep 2011 17:56:40 +0000 Subject: Use the C personality function instead of the C++ personality function. llvm-svn: 140318 --- llvm/lib/CodeGen/ShadowStackGC.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp') 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", -- cgit v1.2.3