[BitcodeReader] Fixed null pointer dereferencing warning. NFCI.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user