diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-19 02:39:40 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-19 02:39:40 +0000 |
commit | 9ead1243a5d9eb671bbe8925dda083d865f6c449 (patch) | |
tree | e1d32c7f41b21f915a5010a60536742c32026854 /clang/lib/StaticAnalyzer/Core/RegionStore.cpp | |
parent | 386328f96f63424d2b13c46db5dce7d54cb4c611 (diff) | |
download | bcm5719-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.cpp | 2 |
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())) { |