ClangMoveTests.cpp: Fix a bogus comparison of iterator.

msc Debug build detected it.

llvm-svn: 288034
This commit is contained in:
NAKAMURA Takumi 2016-11-28 14:27:37 +00:00
parent a29bf16ed5
commit 5843abc912
1 changed files with 2 additions and 1 deletions

View File

@ -521,7 +521,8 @@ TEST(ClangMove, DumpDecls) {
const auto& Results = Reporter.getDeclarationList();
auto ActualDeclIter = Results.begin();
auto ExpectedDeclIter = ExpectedDeclarations.begin();
while (ActualDeclIter != Results.end() && ExpectedDeclIter != Results.end()) {
while (ActualDeclIter != Results.end() &&
ExpectedDeclIter != ExpectedDeclarations.end()) {
EXPECT_EQ(*ActualDeclIter, *ExpectedDeclIter);
++ActualDeclIter;
++ExpectedDeclIter;