================
@@ -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)}}
----------------
steakhal wrote:

Its surprising to read this, as `-172 * sizeof` should result in a huge 
unsigned value due to wrapping.
Maybe a `-172nd 'int' element` would read better.

https://github.com/llvm/llvm-project/pull/158639
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to