projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6345b
)
Fix regression in 'tblgen -gen-clang-diags-defs': Emit the diagnostic kind instead...
author
Ted Kremenek
<kremenek@apple.com>
Thu, 19 Mar 2009 17:18:09 +0000
(17:18 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Thu, 19 Mar 2009 17:18:09 +0000
(17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67305
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/ClangDiagnosticsEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/ClangDiagnosticsEmitter.cpp
b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index cb65cea31a2b4b97ee7f6164816cfcb617df5f83..0f93a4fb1001ca8a57079e2ba1fe16e8ba460e8a 100644
(file)
--- a/
utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ b/
utils/TableGen/ClangDiagnosticsEmitter.cpp
@@
-43,7
+43,8
@@
static const RecordVal* findRecordVal(const Record& R, const std::string &key) {
static const Record* getDiagKind(const Record* DiagClass, const Record &R) {
const SuperClassVector &SC = R.getSuperClasses();
for (SuperClassVector::const_iterator I=SC.begin(), E=SC.end(); I!=E; ++I)
- if ((*I)->isSubClassOf(DiagClass))
+ if ((*I)->isSubClassOf(DiagClass) &&
+ (*I)->getName() != "DiagnosticControlled")
return *I;
return 0;