From eba660f596a9acf8e0fa7f576ed8711ae71c7220 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 3 May 2014 03:45:55 +0000 Subject: Fix a bunch of mislayered clang/Lex includes from Sema git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207896 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaStmtAttr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/Sema/SemaStmtAttr.cpp') diff --git a/lib/Sema/SemaStmtAttr.cpp b/lib/Sema/SemaStmtAttr.cpp index 9bb191d52b..68d1f62280 100644 --- a/lib/Sema/SemaStmtAttr.cpp +++ b/lib/Sema/SemaStmtAttr.cpp @@ -14,7 +14,6 @@ #include "clang/Sema/SemaInternal.h" #include "clang/AST/ASTContext.h" #include "clang/Basic/SourceManager.h" -#include "clang/Lex/Lexer.h" #include "clang/Sema/DelayedDiagnostic.h" #include "clang/Sema/Lookup.h" #include "clang/Sema/ScopeInfo.h" @@ -29,8 +28,7 @@ static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const AttributeList &A, S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) << St->getLocStart(); if (isa(St)) { - SourceLocation L = Lexer::getLocForEndOfToken(Range.getEnd(), 0, - S.getSourceManager(), S.getLangOpts()); + SourceLocation L = S.getLocForEndOfToken(Range.getEnd()); S.Diag(L, diag::note_fallthrough_insert_semi_fixit) << FixItHint::CreateInsertion(L, ";"); } -- cgit v1.2.1