aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/IRBuilder.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-07-28 21:14:13 +0000
committerBill Wendling <isanbard@gmail.com>2011-07-28 21:14:13 +0000
commit7379b6650008fba555d5472d5c76e8efc59e8a21 (patch)
tree7d817da4daae05b68a4da09bb3927cd7d8407702 /include/llvm/Support/IRBuilder.h
parent6bd4842f89ef0f6a53b78664f9f3f2a1006117a9 (diff)
downloadexternal_llvm-7379b6650008fba555d5472d5c76e8efc59e8a21.zip
external_llvm-7379b6650008fba555d5472d5c76e8efc59e8a21.tar.gz
external_llvm-7379b6650008fba555d5472d5c76e8efc59e8a21.tar.bz2
The personality function should be a Function* and not just a Value*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r--include/llvm/Support/IRBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index 7f89b24..542ee10 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -1198,7 +1198,7 @@ public:
return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
}
- Value *CreateLandingPad(Type *Ty, Value *PersFn, unsigned NumClauses,
+ Value *CreateLandingPad(Type *Ty, Function *PersFn, unsigned NumClauses,
const Twine &Name = "") {
return Insert(LandingPadInst::Create(Ty, PersFn, NumClauses, Name));
}