[llvm-dev] Minor bug in raw_svector_ostream
George Burgess IV via llvm-dev
llvm-dev at lists.llvm.org
Sat Jan 25 21:53:35 PST 2020
> Why str method is without "const" attribute? Any reasonable reason?
Probably an accident; `const` is generally best-effort until someone needs
a thing to be `const` :)
Added in
https://github.com/llvm/llvm-project/commit/2f45a93edfe4bc62c7b2c6f8ffb0d06d83bb28cf
. Thanks!
George
On Sat, Jan 25, 2020 at 2:30 AM via llvm-dev <llvm-dev at lists.llvm.org>
wrote:
> include/llvm/Support/raw_ostream.h, line 568:
>
> StringRef str() { return StringRef(OS.data(), OS.size()); }
>
> Why str method is without "const" attribute? Any reasonable reason?
>
> Thanks!
> -Stepan
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200125/fcda9776/attachment.html>
More information about the llvm-dev
mailing list