From: Jordan Rose Date: Fri, 15 Feb 2013 00:32:08 +0000 (+0000) Subject: [analyzer] Tweak LazyCompoundVal reuse check to ignore qualifiers. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c187146003c3b0fc7b4c2acdb989a2eae15a5ef6;p=platform%2Fupstream%2Fllvm.git [analyzer] Tweak LazyCompoundVal reuse check to ignore qualifiers. This is optimization only; no behavioral change. llvm-svn: 175231 --- diff --git a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp index 76abf23..8119966 100644 --- a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp +++ b/clang/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; } }