aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
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 /lib/Bitcode
parent7f66c45f35bdfc69c41f2e1b3b9891a4eca0c0b0 (diff)
downloadexternal_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 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
return Error("Invalid LANDINGPAD record");
}
- LP->addClause(CT, Val);
+ LP->addClause(CT, cast<Constant>(Val));
}
I = LP;