diff options
author | Haojian Wu <hokein@google.com> | 2016-08-29 08:48:15 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2016-08-29 08:48:15 +0000 |
commit | 407f275894a5a65ffd96eddcad87ea35b01ef97a (patch) | |
tree | 72fea3e3731ae2562285efb39c4e9eb5f26d807f /llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp | |
parent | 713085e60aadd55d6e0c77bef1f2ce9756b78086 (diff) | |
download | bcm5719-llvm-407f275894a5a65ffd96eddcad87ea35b01ef97a.tar.gz bcm5719-llvm-407f275894a5a65ffd96eddcad87ea35b01ef97a.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp index f534c43eaa7..1cc75563ba2 100644 --- a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp @@ -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)) { |