[clang] [analyzer] use `invalidateRegions()` in `VisitGCCAsmStmt` (PR #109838)
Pavel Skripkin via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 24 10:32:24 PDT 2024
================
@@ -40,7 +42,19 @@ void testInlineAsmMemcpyUninit(void)
{
int a[10], b[10] = {}, c;
MyMemcpy(&a[1], &b[1], sizeof(b) - sizeof(b[1]));
- c = a[0]; // expected-warning{{Assigned value is garbage or undefined}}
+ c = a[0]; // FIXME: should be warning about uninitialized value, but invalidateRegions() also
----------------
pskrgag wrote:
This is unfortunate, but not really sure how to avoid it
https://github.com/llvm/llvm-project/pull/109838
More information about the cfe-commits
mailing list