summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-12-19 02:39:40 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-12-19 02:39:40 +0000
commit9ead1243a5d9eb671bbe8925dda083d865f6c449 (patch)
treee1d32c7f41b21f915a5010a60536742c32026854 /clang/lib/StaticAnalyzer/Core/RegionStore.cpp
parent386328f96f63424d2b13c46db5dce7d54cb4c611 (diff)
downloadbcm5719-llvm-9ead1243a5d9eb671bbe8925dda083d865f6c449.tar.gz
bcm5719-llvm-9ead1243a5d9eb671bbe8925dda083d865f6c449.zip
Replacing calls to getAttr with calls to hasAttr for clarity. No functional change intended -- this only replaces Boolean uses of getAttr.
llvm-svn: 197648
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/RegionStore.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
index 0b519768aa0..58f21214e19 100644
--- a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
+++ b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
@@ -1016,7 +1016,7 @@ void invalidateRegionsWorker::VisitCluster(const MemRegion *baseR,
BI != BE; ++BI) {
const VarRegion *VR = BI.getCapturedRegion();
const VarDecl *VD = VR->getDecl();
- if (VD->getAttr<BlocksAttr>() || !VD->hasLocalStorage()) {
+ if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage()) {
AddToWorkList(VR);
}
else if (Loc::isLocType(VR->getValueType())) {
OpenPOWER on IntegriCloud