From ee8155d01a70c14654a83bd21354c77afc9f41a5 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 12 Aug 2014 16:01:34 +0000 Subject: Update for API change in clang. llvm-svn: 215452 --- clang-tools-extra/clang-modernize/Core/IncludeDirectives.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang-tools-extra/clang-modernize') 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; -- cgit v1.2.1