mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 22:04:10 +00:00
[InstructionSelect] NumBlocks isn't defined in DEBUG build.
Summary: A follow-up fixing on http://llvm.org/viewvc/llvm-project?view=revision&revision=279905. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23985 llvm-svn: 279959
This commit is contained in:
parent
b910cf620b
commit
cb4437094e
@ -81,10 +81,10 @@ bool InstructionSelect::runOnMachineFunction(MachineFunction &MF) {
|
||||
if (isPreISelGenericOpcode(MI.getOpcode()) && !MLI->isLegal(MI))
|
||||
reportSelectionError(MI, "Instruction is not legal");
|
||||
|
||||
#endif
|
||||
// FIXME: We could introduce new blocks and will need to fix the outer loop.
|
||||
// Until then, keep track of the number of blocks to assert that we don't.
|
||||
const size_t NumBlocks = MF.size();
|
||||
#endif
|
||||
|
||||
bool Failed = false;
|
||||
for (MachineBasicBlock *MBB : post_order(&MF)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user