diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-28 03:55:52 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-28 03:55:52 +0000 |
commit | 353cbe134cbc1df8075790c7a90056a54c711968 (patch) | |
tree | 505eb4a27c2fecf8db5e5f896c440622b0452dee /lib | |
parent | e73dc26690776887bd2991461f6814498600d6eb (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')
-rw-r--r-- | lib/Analysis/BasicStore.cpp | 2 | ||||
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp index 7238d5bb23..e98975d637 100644 --- a/lib/Analysis/BasicStore.cpp +++ b/lib/Analysis/BasicStore.cpp @@ -68,7 +68,7 @@ public: std::pair<const GRState*, SVal> CastRegion(const GRState* St, SVal VoidPtr, QualType CastToTy, Stmt* CastE) { - return std::pair<const GRState*, SVal>(St, UnknownVal()); + return std::make_pair(St, UnknownVal()); } 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) { |