diff options
-rw-r--r-- | llvm/include/llvm/CodeGen/RegisterScavenging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/RegisterScavenging.h b/llvm/include/llvm/CodeGen/RegisterScavenging.h index e699567..94a127e 100644 --- a/llvm/include/llvm/CodeGen/RegisterScavenging.h +++ b/llvm/include/llvm/CodeGen/RegisterScavenging.h @@ -105,8 +105,8 @@ public: /// Move the internal MBB iterator and update register states until /// it has processed the specific iterator. void forward(MachineBasicBlock::iterator I) { - if (!Tracking && MBB->begin() != I) forward(); - while (MBBI != I) forward(); + while (!Tracking || MBBI != I) + forward(); } /// Update internal register state and move MBB iterator backwards. |