Correct the return type of CreateCleanupEndPad
authorReid Kleckner <rnk@google.com>
Thu, 10 Sep 2015 20:07:25 +0000 (20:07 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 10 Sep 2015 20:07:25 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247331 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/IRBuilder.h

index a515e16..8795add 100644 (file)
@@ -681,8 +681,8 @@ public:
     return Insert(CleanupReturnInst::Create(CleanupPad, UnwindBB));
   }
 
-  CatchEndPadInst *CreateCleanupEndPad(CleanupPadInst *CleanupPad,
-                                       BasicBlock *UnwindBB = nullptr) {
+  CleanupEndPadInst *CreateCleanupEndPad(CleanupPadInst *CleanupPad,
+                                         BasicBlock *UnwindBB = nullptr) {
     return Insert(CleanupEndPadInst::Create(CleanupPad, UnwindBB));
   }