aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-19 17:18:09 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-19 17:18:09 +0000
commit7fae82f67a36ea09cbcc384f2bf7882fb6fd55c0 (patch)
treed6fad27d97b42e075f3b9ed9f10aa1e629140338 /utils
parent5e6345bde0f3a6405ec1ea852f1e5e5df8642f9c (diff)
Fix regression in 'tblgen -gen-clang-diags-defs': Emit the diagnostic kind instead of "DIAGNOSTICCONTROLLED".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/ClangDiagnosticsEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp
index cb65cea31a..0f93a4fb10 100644
--- 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;