[clang] [analyzer] Preserve LocAsInteger through identity operations (PR #225048)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 22 13:46:04 PDT 2026


https://github.com/NagyDonat commented:

Seems to be a nice and small bugfix :) and seems to be correct.

As the `unix.Malloc` report was just a symptom of the underlying engine limitations, I think the tests should be moved from `malloc.c` to a separate, new file under `clang/test/Analysis` (which could be named something like `identity-ops-on-LocAsInteger.c`).


https://github.com/llvm/llvm-project/pull/225048


More information about the cfe-commits mailing list