[cfe-commits] r60205 - in /cfe/trunk/lib/Analysis: BasicStore.cpp RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu Nov 27 19:55:54 PST 2008
Author: zhongxingxu
Date: Thu Nov 27 21:55:52 2008
New Revision: 60205
URL: http://llvm.org/viewvc/llvm-project?rev=60205&view=rev
Log:
Use std::make_pair instead of std::pair's ctor.
Modified:
cfe/trunk/lib/Analysis/BasicStore.cpp
cfe/trunk/lib/Analysis/RegionStore.cpp
Modified: cfe/trunk/lib/Analysis/BasicStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BasicStore.cpp?rev=60205&r1=60204&r2=60205&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BasicStore.cpp (original)
+++ cfe/trunk/lib/Analysis/BasicStore.cpp Thu Nov 27 21:55:52 2008
@@ -68,7 +68,7 @@
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());
}
Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=60205&r1=60204&r2=60205&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Thu Nov 27 21:55:52 2008
@@ -364,12 +364,11 @@
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) {
More information about the cfe-commits
mailing list