diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-02-15 00:32:08 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-02-15 00:32:08 +0000 |
commit | fcfcd80cd1de38fe272e1a8ae8faa3cfb6b2e37e (patch) | |
tree | d7b4bad08ffa396ec6201701635cb25199e80617 /lib/StaticAnalyzer/Core/RegionStore.cpp | |
parent | 0a0f1309d0fbeb0e77edbbc4e0b15cc330c3a28c (diff) |
[analyzer] Tweak LazyCompoundVal reuse check to ignore qualifiers.
This is optimization only; no behavioral change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/RegionStore.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/RegionStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/RegionStore.cpp b/lib/StaticAnalyzer/Core/RegionStore.cpp index 76abf238f2..8119966bff 100644 --- a/lib/StaticAnalyzer/Core/RegionStore.cpp +++ b/lib/StaticAnalyzer/Core/RegionStore.cpp @@ -1605,7 +1605,7 @@ NonLoc RegionStoreManager::createLazyBinding(RegionBindingsConstRef B, if (LCV) { QualType RegionTy = R->getValueType(); QualType SourceRegionTy = LCV->getRegion()->getValueType(); - if (RegionTy.getCanonicalType() == SourceRegionTy.getCanonicalType()) + if (Ctx.hasSameUnqualifiedType(RegionTy, SourceRegionTy)) return *LCV; } } |