]> granicus.if.org Git - clang/commitdiff
In CodeGenAction::ExecuteAction() use SourceManager::translateFileLineCol()
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 19 Sep 2011 20:40:38 +0000 (20:40 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 19 Sep 2011 20:40:38 +0000 (20:40 +0000)
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

lib/CodeGen/CodeGenAction.cpp

index 55f3cbe270398b65f4f7808e06e7e4d9d6e4c82b..54d3cb643fa851f52afc30c816e5c03847d57b1c 100644 (file)
@@ -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);