diff options
Diffstat (limited to 'clang-tools-extra/clang-modernize')
-rw-r--r-- | clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp b/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp index eb747c54c33..dc155e1cf77 100644 --- a/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp +++ b/clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp @@ -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; |