]> granicus.if.org Git - clang/commit
Revert r184401 which reverted r183462.
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Jun 2013 06:43:58 +0000 (06:43 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 22 Jun 2013 06:43:58 +0000 (06:43 +0000)
commit2f686697187e8834346b7924797d44c978252ec6
tree797ef1aa6c3ba39de0a25a60d6990b851ca7fdcb
parente2a90b8bb054fc8de6c115a31bfadf7868bcf0c3
Revert r184401 which reverted r183462.

The problem with r183462 was that we assumed that a diagnostic id of
zero would be silent.

This small correction to CheckDerivedToBaseConversion changes it's
behavior to omit the diagnostic when given a diagnostic id of zero.

This fix passes the test case added in r184402.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184631 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclCXX.cpp
test/CXX/drs/dr0xx.cpp