[clang] [analyzer] Explicitly register NoStoreFuncVisitor from alpha.unix.cst… (PR #108373)
Donát Nagy via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 09:04:56 PDT 2024
================
@@ -538,7 +541,8 @@ ProgramStateRef CStringChecker::checkInit(CheckerContext &C,
OS << ") in the ";
printIdxWithOrdinalSuffix(OS, Buffer.ArgumentIndex + 1);
OS << " argument is undefined";
- emitUninitializedReadBug(C, State, Buffer.Expression, OS.str());
+ emitUninitializedReadBug(C, State, Buffer.Expression,
+ FirstElementVal->getAsRegion(), OS.str());
----------------
NagyDonat wrote:
```suggestion
LastElementVal->getAsRegion(), OS.str());
```
https://github.com/llvm/llvm-project/pull/108373
More information about the cfe-commits
mailing list