diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-15 16:52:15 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-15 16:52:15 +0000 |
commit | 8439fac3ce6c26db7982e34d119bf905b57eac91 (patch) | |
tree | 8a81e0a9141a72040d821654d6cc57adf9b90cdd /lib/Basic/Diagnostic.cpp | |
parent | 7420c2dee747a19c718f486e8d092094cdab56ed (diff) |
Base SFINAE error suppression counting on the class of an error, not
its (possibly-remapped) diagnostics. Thanks, Chris!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Diagnostic.cpp')
-rw-r--r-- | lib/Basic/Diagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/Diagnostic.cpp b/lib/Basic/Diagnostic.cpp index 323f7a7d4a..78b8b0a855 100644 --- a/lib/Basic/Diagnostic.cpp +++ b/lib/Basic/Diagnostic.cpp @@ -118,7 +118,7 @@ const char *Diagnostic::getWarningOptionForDiag(unsigned DiagID) { bool Diagnostic::isBuiltinSFINAEDiag(unsigned DiagID) { if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID)) - return Info->SFINAE && Info->Class != CLASS_NOTE; + return Info->SFINAE && Info->Class == CLASS_ERROR; return false; } |