aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 0e75c44..1661e28 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1653,7 +1653,7 @@ Expected<Value *> BitcodeReader::materializeValue(unsigned StartValID,
FwdBBs[BBID] = BasicBlock::Create(Context);
BB = FwdBBs[BBID];
}
- C = BlockAddress::get(Fn, BB);
+ C = BlockAddress::get(Fn->getType(), BB);
break;
}
case BitcodeConstant::ConstantStructOpcode: {