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:
f5b993f
)
[arcmt] When capturing ARC errors, have a sanity check to make sure
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 12 Dec 2012 22:48:28 +0000
(22:48 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 12 Dec 2012 22:48:28 +0000
(22:48 +0000)
the diagnostic has a valid location.
llvm-svn: 170040
clang/lib/ARCMigrate/ARCMT.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/ARCMigrate/ARCMT.cpp
b/clang/lib/ARCMigrate/ARCMT.cpp
index
df96ac8
..
6b1da08
100644
(file)
--- a/
clang/lib/ARCMigrate/ARCMT.cpp
+++ b/
clang/lib/ARCMigrate/ARCMT.cpp
@@
-130,7
+130,8
@@
public:
const Diagnostic &Info) {
if (DiagnosticIDs::isARCDiagnostic(Info.getID()) ||
level >= DiagnosticsEngine::Error || level == DiagnosticsEngine::Note) {
- CapturedDiags.push_back(StoredDiagnostic(level, Info));
+ if (Info.getLocation().isValid())
+ CapturedDiags.push_back(StoredDiagnostic(level, Info));
return;
}