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
This commit is contained in:
Bill Wendling
2011-07-28 02:27:12 +00:00
parent 7f66c45f35
commit 28d735230f
5 changed files with 11 additions and 10 deletions

View File

@@ -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.