commit | 28d735230f0b3ac964f07e91594fb6c38772f0e6 | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Thu Jul 28 02:27:12 2011 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Thu Jul 28 02:27:12 2011 +0000 |
tree | e74ca64e4599444fd2daeeaa69286e307aa3cb1e | |
parent | 7f66c45f35bdfc69c41f2e1b3b9891a4eca0c0b0 [diff] [blame] |
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
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 37cc794..4b83958 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -2550,7 +2550,7 @@ return Error("Invalid LANDINGPAD record"); } - LP->addClause(CT, Val); + LP->addClause(CT, cast<Constant>(Val)); } I = LP;