Browse Source

Update ExceptionDemo for exception handling API changes (personality function call->function move)

The ExceptionDemo now compiles, but doesn't link... undefined type
references to various typeinfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244997 91177308-0d34-0410-b5e6-96231b3b80d8
David Blaikie 10 years ago
parent
commit
329f95975f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/ExceptionDemo/ExceptionDemo.cpp

+ 1 - 1
examples/ExceptionDemo/ExceptionDemo.cpp

@@ -1265,10 +1265,10 @@ static llvm::Function *createCatchWrappedInvokeFunction(
   builder.SetInsertPoint(exceptionBlock);
   builder.SetInsertPoint(exceptionBlock);
 
 
   llvm::Function *personality = module.getFunction("ourPersonality");
   llvm::Function *personality = module.getFunction("ourPersonality");
+  ret->setPersonalityFn(personality);
 
 
   llvm::LandingPadInst *caughtResult =
   llvm::LandingPadInst *caughtResult =
     builder.CreateLandingPad(ourCaughtResultType,
     builder.CreateLandingPad(ourCaughtResultType,
-                             personality,
                              numExceptionsToCatch,
                              numExceptionsToCatch,
                              "landingPad");
                              "landingPad");