[llvm] r279959 - [InstructionSelect] NumBlocks isn't defined in DEBUG build.
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 01:48:16 PDT 2016
Author: hokein
Date: Mon Aug 29 03:48:15 2016
New Revision: 279959
URL: http://llvm.org/viewvc/llvm-project?rev=279959&view=rev
Log:
[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
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelect.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelect.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelect.cpp?rev=279959&r1=279958&r2=279959&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelect.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/InstructionSelect.cpp Mon Aug 29 03:48:15 2016
@@ -81,10 +81,10 @@ bool InstructionSelect::runOnMachineFunc
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)) {
More information about the llvm-commits
mailing list