[clang-tools-extra] r215452 - Update for API change in clang.

Rafael Espindola rafael.espindola at gmail.com
Tue Aug 12 09:01:34 PDT 2014


Author: rafael
Date: Tue Aug 12 11:01:34 2014
New Revision: 215452

URL: http://llvm.org/viewvc/llvm-project?rev=215452&view=rev
Log:
Update for API change in clang.

Modified:
    clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp

Modified: clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp?rev=215452&r1=215451&r2=215452&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp (original)
+++ clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp Tue Aug 12 11:01:34 2014
@@ -116,7 +116,8 @@ private:
     // checking for equality because it can also be part of the preamble if the
     // preamble is the whole file.
     unsigned Preamble =
-        Lexer::ComputePreamble(*SM.getBuffer(Guard.FID), LangOpts).first;
+        Lexer::ComputePreamble(SM.getBuffer(Guard.FID)->getBuffer(), LangOpts)
+            .first;
     unsigned IfndefOffset = SM.getFileOffset(Guard.IfndefLoc);
     if (IfndefOffset > (Preamble + 1))
       return;





More information about the cfe-commits mailing list