Clauses in a landingpad are always Constant. Use a stricter type.

llvm-svn: 210203
This commit is contained in:
Rafael Espindola
2014-06-04 18:51:31 +00:00
parent 9921f8bf3f
commit 133baba536
6 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -2826,7 +2826,7 @@ error_code BitcodeReader::ParseFunctionBody(Function *F) {
assert((CT != LandingPadInst::Filter ||
isa<ArrayType>(Val->getType())) &&
"Filter clause has invalid type!");
LP->addClause(Val);
LP->addClause(cast<Constant>(Val));
}
I = LP;