[PATCH] D126130: [analyzer][NFC] Remove unused SVal::hasConjuredSymbol
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat May 21 12:15:44 PDT 2022
steakhal updated this revision to Diff 431164.
steakhal added a comment.
Well, my first use of `arc` went a bit sideways, so I'm falling back to posting this NFC patch batch manually.
We will see how using `arc` works out next time.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126130/new/
https://reviews.llvm.org/D126130
Files:
clang/lib/StaticAnalyzer/Core/SVals.cpp
Index: clang/lib/StaticAnalyzer/Core/SVals.cpp
===================================================================
--- clang/lib/StaticAnalyzer/Core/SVals.cpp
+++ clang/lib/StaticAnalyzer/Core/SVals.cpp
@@ -177,8 +177,7 @@
}
const MemRegion *loc::MemRegionVal::stripCasts(bool StripBaseCasts) const {
- const MemRegion *R = getRegion();
- return R ? R->StripCasts(StripBaseCasts) : nullptr;
+ return getRegion()->StripCasts(StripBaseCasts);
}
const void *nonloc::LazyCompoundVal::getStore() const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126130.431164.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220521/4576741e/attachment.bin>
More information about the cfe-commits
mailing list