mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
Fix regression in 'tblgen -gen-clang-diags-defs': Emit the diagnostic kind instead of "DIAGNOSTICCONTROLLED".
llvm-svn: 67305
This commit is contained in:
parent
3181caa065
commit
9ef6dfa745
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user