Correct the return type of CreateCleanupEndPad
[oota-llvm.git] / include / llvm / IR / IRBuilder.h
index a515e165c5074a329a2b017019c540ba8a66d5cd..8795addd1a5efc4eb37e2806854083e59ba284d2 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));
   }