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;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits