================
@@ -40,7 +70,7 @@ void gh86959(void) {
while (rng())
TenElements[getIndex()] = 10;
// expected-warning@-1 {{Out of bound access to memory preceding
'TenElements'}}
- // expected-note@-2 {{Access of 'TenElements' at negative byte offset -688}}
+ // expected-note@-2 {{Access of 'TenElements' at negative byte offset -688 =
-172 * sizeof(int)}}
----------------
NagyDonat wrote:
Ok, I'll rewrite it somehow.
By the way I really hate that C has "`unsigned`" numbers (i.e. raw binary
values without sign handling logic) which are frequently used as if they were
"non-negative" numbers (i.e. proper numbers with normal arithmetic that happen
to be non-negative). In particular, these "promote to unsigned" rules are the
most problematic footguns in this area – it is completely nonsense that e.g.
`-1 > FFFFFFFFULL`.
https://github.com/llvm/llvm-project/pull/158639
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits