aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-11-28 03:55:52 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-11-28 03:55:52 +0000
commit353cbe134cbc1df8075790c7a90056a54c711968 (patch)
tree505eb4a27c2fecf8db5e5f896c440622b0452dee /lib/Analysis/RegionStore.cpp
parente73dc26690776887bd2991461f6814498600d6eb (diff)
Use std::make_pair instead of std::pair's ctor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r--lib/Analysis/RegionStore.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp
index 90baf2df92..157248f21b 100644
--- a/lib/Analysis/RegionStore.cpp
+++ b/lib/Analysis/RegionStore.cpp
@@ -364,12 +364,11 @@ RegionStoreManager::CastRegion(const GRState* St, SVal VoidPtr,
const ElementRegion* ER = MRMgr.getElementRegion(Idx, TR);
// Add a RegionView to base region.
- return std::pair<const GRState*, SVal>(AddRegionView(St, TR, AR),
- loc::MemRegionVal(ER));
+ return std::make_pair(AddRegionView(St, TR, AR), loc::MemRegionVal(ER));
}
// Default case.
- return std::pair<const GRState*, SVal>(St, UnknownVal());
+ return std::make_pair(St, UnknownVal());
}
SVal RegionStoreManager::Retrieve(Store S, Loc L, QualType T) {