[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:
@@ -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