commit | 2f686697187e8834346b7924797d44c978252ec6 | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Sat Jun 22 06:43:58 2013 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Sat Jun 22 06:43:58 2013 +0000 |
tree | 797ef1aa6c3ba39de0a25a60d6990b851ca7fdcb | |
parent | e2a90b8bb054fc8de6c115a31bfadf7868bcf0c3 [diff] |
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