mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 02:01:39 +00:00
Clauses in a landingpad are always Constant. Use a stricter type.
llvm-svn: 210203
This commit is contained in:
1 parent
8501e39a85
commit
4dc5dfc56b
6 files changed
+17
-15
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user