summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit4c93488999e930d290e6b8b9ad4dd84aaf89fb11 (patch)
tree96b8eb76174cb22b729f6a8456cc960afd1711b5 /llvm/lib/VMCore/Instructions.cpp
parenta8f04e303479adaf8518c27be9052453d87e1b56 (diff)
downloadbcm5719-llvm-4c93488999e930d290e6b8b9ad4dd84aaf89fb11.tar.gz
bcm5719-llvm-4c93488999e930d290e6b8b9ad4dd84aaf89fb11.zip
Make sure that the landingpad instruction takes a Constant* as the clause's value.
llvm-svn: 136326
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 9398c7f872c..968a565197c 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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;
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud