mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 01:51:22 +00:00
[OpaquePtr] Support invoke instruction
With call support in place, this is only a matter of relaxing a bitcode reader assertion.
This commit is contained in:
1 parent
56709b8695
commit
e5f2b035dd
2 files changed
+18
-1
No files matched your search
@@ -4638,7 +4638,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
|
||||
cast<PointerType>(Callee->getType())->getElementType());
|
||||
if (!FTy)
|
||||
return error("Callee is not of pointer to function type");
|
||||
} else if (cast<PointerType>(Callee->getType())->getElementType() != FTy)
|
||||
} else if (!CalleeTy->isOpaqueOrPointeeTypeMatches(FTy))
|
||||
return error("Explicit invoke type does not match pointee type of "
|
||||
"callee operand");
|
||||
if (Record.size() < FTy->getNumParams() + OpNum)
|
||||
|
||||
Reference in new issue
Block a user