================
@@ -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:

I ended up switching to a different approach that generalizes the function 
generating the overflow message and uses it to generate the underflow message 
as well. This ensures that the two kinds of messages are formatted in a 
consistent style.

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

Reply via email to