From: Argyrios Kyrtzidis Date: Mon, 19 Sep 2011 20:40:38 +0000 (+0000) Subject: In CodeGenAction::ExecuteAction() use SourceManager::translateFileLineCol() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a9ee2082891e04ce793d7a7a111301873c4f854;p=clang In CodeGenAction::ExecuteAction() use SourceManager::translateFileLineCol() instead of getLocation() since we don't care about expanded macro arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140061 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 55f3cbe270..54d3cb643f 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -320,7 +320,7 @@ void CodeGenAction::ExecuteAction() { TheModule.reset(ParseIR(MainFileCopy, Err, *VMContext)); if (!TheModule) { // Translate from the diagnostic info to the SourceManager location. - SourceLocation Loc = SM.getLocation( + SourceLocation Loc = SM.translateFileLineCol( SM.getFileEntryForID(SM.getMainFileID()), Err.getLineNo(), Err.getColumnNo() + 1);