[PATCH] D33563: Track whether a unary operation can overflow
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 30 09:57:57 PDT 2017
aaron.ballman marked an inline comment as done.
aaron.ballman added inline comments.
================
Comment at: lib/Sema/SemaDeclCXX.cpp:11119
+ VK_LValue, OK_Ordinary, Loc, true);
// Construct the loop that copies all elements of this array.
----------------
ahatanak wrote:
> Can we pass false here if we know the array size is not too large and the pre-increment won't cause overflow?
Good idea!
https://reviews.llvm.org/D33563
More information about the cfe-commits
mailing list