]> granicus.if.org Git - clang/commitdiff
Fix build breakage
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Dec 2014 23:24:27 +0000 (23:24 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Dec 2014 23:24:27 +0000 (23:24 +0000)
That's what I get for last second changes...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseExprCXX.cpp

index a6162e2d4c528ae243cff0bba9d2b4e65efedc16..f101d9f12739b55495a84f882ec767552b8256e5 100644 (file)
@@ -448,7 +448,8 @@ bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS,
       // like we never saw it.
       Token Identifier = Tok; // Stash away the identifier.
       ConsumeToken();         // Eat the identifier, current token is now '::'.
-      Diag(PP.getLocForEndOfTokenConsumeToken(), diag::err_expected) << tok::identifier;
+      Diag(PP.getLocForEndOfToken(ConsumeToken()), diag::err_expected)
+          << tok::identifier;
       UnconsumeToken(Identifier); // Stick the identifier back.
       Next = NextToken();         // Point Next at the '{' token.
     }