commit | b8fc45f8d0fdcc7908590115942d425bf4a924f1 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Thu Apr 14 00:41:11 2011 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Thu Apr 14 00:41:11 2011 +0000 |
tree | 6fce29d2c5f4a58558dd13cd9ab306e9f84d17ea | |
parent | 3e2193ce5feb2feb092e5ae615e85148e06e9fd2 [diff] |
In C++, when initializing an array from a pascal string, it's OK if the array is 1 element smaller than the string, because we can just strip off the last null character. This matches GCC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129490 91177308-0d34-0410-b5e6-96231b3b80d8