[clang] [clang][analyzer] Extend lifetime of dynamic extent information (PR #163562)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 30 02:24:50 PDT 2025
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/163562 at github.com>
================
@@ -381,30 +381,12 @@ int *symbolicExtent(int arg) {
return 0;
int *mem = (int*)malloc(arg);
- // TODO: without the following reference to 'arg', the analyzer would discard
- // the range information about (the symbolic value of) 'arg'. This is
- // incorrect because while the variable itself is inaccessible, it becomes
- // the symbolic extent of 'mem', so we still want to reason about its
- // potential values.
- (void)arg;
----------------
steakhal wrote:
Are there other similar void casts remaining int the test set that could be cleaned up?
https://github.com/llvm/llvm-project/pull/163562
More information about the cfe-commits
mailing list