commit | 14d0aee957f11b9613fa4312919bec3cc5456a1c | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Jan 27 00:58:17 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Jan 27 00:58:17 2011 +0000 |
tree | b54c89ea196f1db30a542516edcf1f51543ab982 | |
parent | 52a80e19ad688091723a52ad53337767bb0ac684 [diff] |
Fix a horrible bug in our handling of C-style casting, where a C-style derived-to-base cast that also casts away constness (one of the cases for static_cast followed by const_cast) would be treated as a bit-cast rather than a derived-to-base class, causing miscompiles and heartburn. Fixes <rdar://problem/8913298>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124340 91177308-0d34-0410-b5e6-96231b3b80d8