Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 1a9316c55945434e0fb8efcb1a7bb6138c1c6815..2c10b4d06225aab2049f48b385694ade379dbf0a 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -78,13 +78,13 @@ void LInstruction::VerifyCall() { |
ASSERT(Output() == NULL || |
LUnallocated::cast(Output())->HasFixedPolicy() || |
!LUnallocated::cast(Output())->HasRegisterPolicy()); |
- for (UseIterator it(this); it.HasNext(); it.Advance()) { |
- LUnallocated* operand = LUnallocated::cast(it.Next()); |
+ for (UseIterator it(this); !it.Done(); it.Advance()) { |
+ LUnallocated* operand = LUnallocated::cast(it.Current()); |
ASSERT(operand->HasFixedPolicy() || |
operand->IsUsedAtStart()); |
} |
- for (TempIterator it(this); it.HasNext(); it.Advance()) { |
- LUnallocated* operand = LUnallocated::cast(it.Next()); |
+ for (TempIterator it(this); !it.Done(); it.Advance()) { |
+ LUnallocated* operand = LUnallocated::cast(it.Current()); |
ASSERT(operand->HasFixedPolicy() ||!operand->HasRegisterPolicy()); |
} |
} |