summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-02-20 22:23:01 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-02-20 22:23:01 +0000
commit0336f5d53444841837e09434a1604dd7ff8cb4b0 (patch)
tree1d26a9bdb6443425dabb014711353094fcddf296 /clang
parentfa5eeba1dcb134050aa166eccfa82b0f5db5dc95 (diff)
downloadbcm5719-llvm-0336f5d53444841837e09434a1604dd7ff8cb4b0.tar.gz
bcm5719-llvm-0336f5d53444841837e09434a1604dd7ff8cb4b0.zip
Use op-> directly rather than via Optional<T>::getPointer.
Post-commit CR feedback from Jordan Rose regarding r175594. llvm-svn: 175677
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/StaticAnalyzer/Core/RegionStore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
index 39417afbd05..b5e31d2f525 100644
--- a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
+++ b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
@@ -1265,7 +1265,7 @@ RegionStoreManager::getLazyBinding(RegionBindingsConstRef B,
if (originalRegion != R) {
if (Optional<SVal> OV = B.getDefaultBinding(R)) {
if (llvm::Optional<nonloc::LazyCompoundVal> V =
- OV.getPointer()->getAs<nonloc::LazyCompoundVal>())
+ OV->getAs<nonloc::LazyCompoundVal>())
return std::make_pair(V->getStore(), V->getRegion());
}
}
@@ -1671,7 +1671,7 @@ NonLoc RegionStoreManager::createLazyBinding(RegionBindingsConstRef B,
// don't create a new lazy binding.
if (Optional<SVal> V = B.getDefaultBinding(R)) {
if (llvm::Optional<nonloc::LazyCompoundVal> LCV =
- V.getPointer()->getAs<nonloc::LazyCompoundVal>()) {
+ V->getAs<nonloc::LazyCompoundVal>()) {
QualType RegionTy = R->getValueType();
QualType SourceRegionTy = LCV->getRegion()->getValueType();
if (Ctx.hasSameUnqualifiedType(RegionTy, SourceRegionTy))
OpenPOWER on IntegriCloud