commit | 41f4431f3989ff23029eaf2ad947f07e39fb268c | [log] [tgz] |
---|---|---|
author | Chad Rosier <mcrosier@apple.com> | Fri Feb 03 02:54:37 2012 +0000 |
committer | Chad Rosier <mcrosier@apple.com> | Fri Feb 03 02:54:37 2012 +0000 |
tree | 412f395a2e6100b60833bb3488be67eda0428351 | |
parent | 3c0e80e9f2f733b7b56251e9bfd4c1097a81b2f5 [diff] |
C++ 5.2.10p2 has a note that mentions that, subject to all other restrictions, a cast to the same type is allowed so long as it does not cast away constness. Fix for PR11747. Patch by Aaron Ballman. Reviewed by Eli. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149664 91177308-0d34-0410-b5e6-96231b3b80d8