=?utf-8?q?DonĂ¡t?= Nagy <[email protected]>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/[email protected]>
================
@@ -174,9 +176,119 @@ compareValueToThreshold(ProgramStateRef State, NonLoc
Value, NonLoc Threshold,
return {nullptr, nullptr};
}
-void ArrayBoundCheckerV2::checkLocation(SVal location, bool isLoad,
- const Stmt* LoadS,
- CheckerContext &checkerContext) const {
+static std::string getRegionName(const SubRegion *Region) {
+ std::string RegName = Region->getDescriptiveName();
+ if (!RegName.empty())
+ return RegName;
----------------
steakhal wrote:
```suggestion
if (std::string RegName = Region->getDescriptiveName(); !RegName.empty())
return RegName;
```
https://github.com/llvm/llvm-project/pull/70056
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits