summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
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
commit4c93488999e930d290e6b8b9ad4dd84aaf89fb11 (patch)
tree96b8eb76174cb22b729f6a8456cc960afd1711b5 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta8f04e303479adaf8518c27be9052453d87e1b56 (diff)
downloadbcm5719-llvm-4c93488999e930d290e6b8b9ad4dd84aaf89fb11.tar.gz
bcm5719-llvm-4c93488999e930d290e6b8b9ad4dd84aaf89fb11.zip
Make sure that the landingpad instruction takes a Constant* as the clause's value.
llvm-svn: 136326
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 37cc7949afe..4b83958e784 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud