]> granicus.if.org Git - clang/blobdiff - include/clang/Lex/Preprocessor.h
Fix the end location of init-capture annotations in ObjC++
[clang] / include / clang / Lex / Preprocessor.h
index ad8589e08689818e1bf4d7e5925b8d7aca899b7f..b1cb00ec59029e69098f27eb316e055acaa26273 100644 (file)
@@ -1179,7 +1179,7 @@ public:
   /// location of an annotation token.
   SourceLocation getLastCachedTokenLocation() const {
     assert(CachedLexPos != 0);
-    return CachedTokens[CachedLexPos-1].getLocation();
+    return CachedTokens[CachedLexPos-1].getLastLoc();
   }
 
   /// \brief Replace the last token with an annotation token.