projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00f6c77
)
Be defensive when printing module import locations; the diagnostic printer needs...
author
Douglas Gregor
<dgregor@apple.com>
Tue, 18 Dec 2012 23:02:07 +0000
(23:02 +0000)
committer
Douglas Gregor
<dgregor@apple.com>
Tue, 18 Dec 2012 23:02:07 +0000
(23:02 +0000)
llvm-svn: 170466
clang/lib/Frontend/TextDiagnostic.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Frontend/TextDiagnostic.cpp
b/clang/lib/Frontend/TextDiagnostic.cpp
index
651ddd6
..
aba90f6
100644
(file)
--- a/
clang/lib/Frontend/TextDiagnostic.cpp
+++ b/
clang/lib/Frontend/TextDiagnostic.cpp
@@
-898,7
+898,7
@@
void TextDiagnostic::emitBuildingModuleLocation(SourceLocation Loc,
PresumedLoc PLoc,
StringRef ModuleName,
const SourceManager &SM) {
- if (DiagOpts->ShowLocation)
+ if (DiagOpts->ShowLocation
&& PLoc.getFilename()
)
OS << "While building module '" << ModuleName << "' imported from "
<< PLoc.getFilename() << ':' << PLoc.getLine() << ":\n";
else