зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
e73dc26690
Коммит
353cbe134c
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче