[PATCH] D30035: Add const to function parameters
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 22 10:45:02 PST 2017
Adding const to pointed/referenced types doesn't usually help the compiler,
since they don't guarantee that the underlying object is const (nor that
any use can't involve const_casting away the constness and mutating the
value anyway).
On Fri, Feb 17, 2017 at 2:34 PM Aditya Kumar via Phabricator via
cfe-commits <cfe-commits at lists.llvm.org> wrote:
> hiraditya added a comment.
>
> Adding const could help compiler, I do not have any specific performance
> numbers yet. So if this is too much trouble then we don't have to merge
> this.
>
>
> https://reviews.llvm.org/D30035
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170222/68155612/attachment.html>
More information about the cfe-commits
mailing list