[clang-tools-extra] r215392 - Update for API change in r215391
David Blaikie
dblaikie at gmail.com
Mon Aug 11 15:11:02 PDT 2014
Author: dblaikie
Date: Mon Aug 11 17:11:02 2014
New Revision: 215392
URL: http://llvm.org/viewvc/llvm-project?rev=215392&view=rev
Log:
Update for API change in r215391
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=215392&r1=215391&r2=215392&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp (original)
+++ clang-tools-extra/trunk/clang-modernize/Core/IncludeDirectives.cpp Mon Aug 11 17:11:02 2014
@@ -116,7 +116,7 @@ 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), LangOpts).first;
unsigned IfndefOffset = SM.getFileOffset(Guard.IfndefLoc);
if (IfndefOffset > (Preamble + 1))
return;
More information about the cfe-commits
mailing list