forked from OSchip/llvm-project
[BitcodeReader] Fixed null pointer dereferencing warning. NFCI.
This commit is contained in:
parent
a18a8db0d4
commit
f39d95ea04
|
@ -3936,6 +3936,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
|
|||
if ((I = UpgradeBitCastInst(Opc, Op, ResTy, Temp))) {
|
||||
if (Temp) {
|
||||
InstructionList.push_back(Temp);
|
||||
assert(CurBB && "No current BB?");
|
||||
CurBB->getInstList().push_back(Temp);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue