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 8501e39a85
commit 4dc5dfc56b
6 changed files with 17 additions and 15 deletions

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;