diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-07-28 21:14:13 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-07-28 21:14:13 +0000 |
commit | 4f027233d21d4de4970c7c28bcbfb28d51221b0a (patch) | |
tree | 8571136ac11f75739079a747ba8d180c517dcf00 /llvm/lib/VMCore/Instructions.cpp | |
parent | a3e41533f29ed6f15e1397a92528030523a258e4 (diff) | |
download | bcm5719-llvm-4f027233d21d4de4970c7c28bcbfb28d51221b0a.tar.gz bcm5719-llvm-4f027233d21d4de4970c7c28bcbfb28d51221b0a.zip |
The personality function should be a Function* and not just a Value*.
llvm-svn: 136392
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index c980a7189a3..9fdff0773a6 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -170,12 +170,12 @@ Value *PHINode::hasConstantValue() const { // LandingPadInst Implementation //===----------------------------------------------------------------------===// -void LandingPadInst::init(Value *PersFn, unsigned NumReservedValues, +void LandingPadInst::init(Function *PersFn, unsigned NumReservedValues, const Twine &NameStr) { ReservedSpace = NumReservedValues; NumOperands = 1; OperandList = allocHungoffUses(ReservedSpace); - OperandList[0] = PersFn; + OperandList[0] = (Value*)PersFn; setName(NameStr); } |