summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
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 /include/llvm/Instructions.h
parent7f66c45f35bdfc69c41f2e1b3b9891a4eca0c0b0 (diff)
downloadllvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.gz
llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.bz2
llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.xz
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 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 82d58162f6..f520310529 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1852,7 +1852,7 @@ public:
void setCleanup(bool Val) { IsCleanup = Val; }
/// addClause - Add a clause to the landing pad.
- void addClause(ClauseType CT, Value *ClauseVal);
+ void addClause(ClauseType CT, Constant *ClauseVal);
/// getClauseType - Return the type of the clause at this index. The two
/// supported clauses are Catch and Filter.
@@ -1862,9 +1862,9 @@ public:
}
/// getClauseValue - Return the value of the clause at this index.
- Value *getClauseValue(unsigned I) const {
+ Constant *getClauseValue(unsigned I) const {
assert(I + 1 < getNumOperands() && "Index too large!");
- return OperandList[I + 1];
+ return cast<Constant>(OperandList[I + 1]);
}
/// getNumClauses - Get the number of clauses for this landing pad.