Skip to content

Commit 3272ba5

Browse files
committed
fix the MIR check
1 parent f906410 commit 3272ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llc/NewPMDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int llvm::compileModuleWithNewPM(
170170
return 0;
171171
}
172172

173-
if (MIR->parseMachineFunctions(*M, MAM))
173+
if (MIR && MIR->parseMachineFunctions(*M, MAM))
174174
return 1;
175175

176176
// Before executing passes, print the final values of the LLVM options.

0 commit comments

Comments
 (0)