diff options
| -rw-r--r-- | llvm/include/llvm/CodeGen/RegisterScavenging.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/RegisterScavenging.h b/llvm/include/llvm/CodeGen/RegisterScavenging.h index 40dd66c06a7..05e9e55e234 100644 --- a/llvm/include/llvm/CodeGen/RegisterScavenging.h +++ b/llvm/include/llvm/CodeGen/RegisterScavenging.h @@ -98,6 +98,7 @@ public: /// forward / backward - 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(); } void backward(MachineBasicBlock::iterator I) { |

