mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user