diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-07-28 02:27:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-07-28 02:27:12 +0000 |
commit | 28d735230f0b3ac964f07e91594fb6c38772f0e6 (patch) | |
tree | e74ca64e4599444fd2daeeaa69286e307aa3cb1e /include/llvm | |
parent | 7f66c45f35bdfc69c41f2e1b3b9891a4eca0c0b0 (diff) | |
download | external_llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.zip external_llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.gz external_llvm-28d735230f0b3ac964f07e91594fb6c38772f0e6.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Instructions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 82d5816..f520310 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. |