forked from OSchip/llvm-project
ClangMoveTests.cpp: Fix a bogus comparison of iterator.
msc Debug build detected it. llvm-svn: 288034
This commit is contained in:
parent
a29bf16ed5
commit
5843abc912
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue