aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-07-28 02:27:12 +0000
committerBill Wendling <isanbard@gmail.com>2011-07-28 02:27:12 +0000
commit28d735230f0b3ac964f07e91594fb6c38772f0e6 (patch)
treee74ca64e4599444fd2daeeaa69286e307aa3cb1e /lib/VMCore/Instructions.cpp
parent7f66c45f35bdfc69c41f2e1b3b9891a4eca0c0b0 (diff)
downloadexternal_llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.gz
external_llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.bz2
external_llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.zip
Make sure that the landingpad instruction takes a Constant* as the clause's value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 9398c7f872..968a565197 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -228,14 +228,14 @@ void LandingPadInst::reserveClauses(unsigned Size) {
Use::zap(OldOps, OldOps + e, true);
}
-void LandingPadInst::addClause(ClauseType CT, Value *ClauseVal) {
+void LandingPadInst::addClause(ClauseType CT, Constant *ClauseVal) {
unsigned OpNo = getNumOperands();
if (OpNo + 1 > ReservedSpace)
growOperands();
assert(OpNo < ReservedSpace && "Growing didn't work!");
ClauseIdxs.push_back(CT);
++NumOperands;
- OperandList[OpNo] = ClauseVal;
+ OperandList[OpNo] = (Value*)ClauseVal;
}
//===----------------------------------------------------------------------===//