diff options
author | James Y Knight <jyknight@google.com> | 2019-02-01 20:43:34 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2019-02-01 20:43:34 +0000 |
commit | d9e85a0861b7e9320c34547a2ad7f49c504a9381 (patch) | |
tree | bafc31ff522534fb10e65ddc519943a7be7abc28 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 7976eb58382b25d0e17490b9d77fb06cb000c95b (diff) | |
download | llvm-d9e85a0861b7e9320c34547a2ad7f49c504a9381.zip llvm-d9e85a0861b7e9320c34547a2ad7f49c504a9381.tar.gz llvm-d9e85a0861b7e9320c34547a2ad7f49c504a9381.tar.bz2 |
[opaque pointer types] Pass function types to InvokeInst creation.
This cleans up all InvokeInst creation in LLVM to explicitly pass a
function type rather than deriving it from the pointer's element-type.
Differential Revision: https://reviews.llvm.org/D57171
llvm-svn: 352910
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 0b93a61..433a481 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -4211,7 +4211,8 @@ Error BitcodeReader::parseFunctionBody(Function *F) { } } - I = InvokeInst::Create(Callee, NormalBB, UnwindBB, Ops, OperandBundles); + I = InvokeInst::Create(FTy, Callee, NormalBB, UnwindBB, Ops, + OperandBundles); OperandBundles.clear(); InstructionList.push_back(I); cast<InvokeInst>(I)->setCallingConv( |