[llvm-commits] [llvm] r67305 - /llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Ted Kremenek
kremenek at apple.com
Thu Mar 19 10:18:09 PDT 2009
Author: kremenek
Date: Thu Mar 19 12:18:09 2009
New Revision: 67305
URL: http://llvm.org/viewvc/llvm-project?rev=67305&view=rev
Log:
Fix regression in 'tblgen -gen-clang-diags-defs': Emit the diagnostic kind instead of "DIAGNOSTICCONTROLLED".
Modified:
llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Modified: llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp?rev=67305&r1=67304&r2=67305&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Thu Mar 19 12:18:09 2009
@@ -43,7 +43,8 @@
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;
More information about the llvm-commits
mailing list