diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:38 +0000 |
commit | 27bf76d6d22e6ee809f17d09cf4f6e620bde8a94 (patch) | |
tree | de905c44a5a661786f2189874a39369c6957f862 /clang/lib/CodeGen | |
parent | 7c06d8666b3f81051787159d2d5c7ff84270ae10 (diff) | |
download | bcm5719-llvm-27bf76d6d22e6ee809f17d09cf4f6e620bde8a94.tar.gz bcm5719-llvm-27bf76d6d22e6ee809f17d09cf4f6e620bde8a94.zip |
In CodeGenAction::ExecuteAction() use SourceManager::translateFileLineCol()
instead of getLocation() since we don't care about expanded macro arguments.
llvm-svn: 140061
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 55f3cbe2703..54d3cb643fa 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/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); |