diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-22 22:10:51 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-23 20:24:33 +0200 |
| commit | e5f2b035dd8ff5cce3e12d5ab7e478f7e66b9117 (patch) | |
| tree | 5a2015ae6e98dccc7de4e66bbe2c9f835dc03f01 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 56709b869570f7825d335d633bc829511980c253 (diff) | |
[OpaquePtr] Support invoke instruction
With call support in place, this is only a matter of relaxing a
bitcode reader assertion.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 7d69bd42757d..7deb19366ec4 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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) |
