[cfe-commits] Remove redundant c_str() calls in the clang code base
klimek at google.com
Tue May 24 18:46:52 PDT 2011
The attached patch was automatically generated by the example tool for
review in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110523/042163.html
(contributed by Marcin, cc'ed).
This brought up a use of ConstantArray::get that was based on an older
implementation of the interface, but fixed by calling .c_str() after
appending a null-byte to a string and handing it to a StringRef. I
deleted the outdated comment on the implementation of get(), as the
comment in the header nicely explains the correct (and up-to-date)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7454 bytes
Desc: not available
More information about the cfe-commits