From 5843abc91271f06c9b4b275c1009e0a3a9d6b942 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 28 Nov 2016 14:27:37 +0000 Subject: [PATCH] ClangMoveTests.cpp: Fix a bogus comparison of iterator. msc Debug build detected it. llvm-svn: 288034 --- clang-tools-extra/unittests/clang-move/ClangMoveTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/unittests/clang-move/ClangMoveTests.cpp b/clang-tools-extra/unittests/clang-move/ClangMoveTests.cpp index ab522eaa21ce..bc88bc309f46 100644 --- a/clang-tools-extra/unittests/clang-move/ClangMoveTests.cpp +++ b/clang-tools-extra/unittests/clang-move/ClangMoveTests.cpp @@ -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;