r224967 - Fix build breakage

David Majnemer david.majnemer at gmail.com
Mon Dec 29 15:24:27 PST 2014


Author: majnemer
Date: Mon Dec 29 17:24:27 2014
New Revision: 224967

URL: http://llvm.org/viewvc/llvm-project?rev=224967&view=rev
Log:
Fix build breakage

That's what I get for last second changes...

Modified:
    cfe/trunk/lib/Parse/ParseExprCXX.cpp

Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExprCXX.cpp?rev=224967&r1=224966&r2=224967&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExprCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExprCXX.cpp Mon Dec 29 17:24:27 2014
@@ -448,7 +448,8 @@ bool Parser::ParseOptionalCXXScopeSpecif
       // 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.
     }





More information about the cfe-commits mailing list