From a08823638ace7106aaf1886145b518cb1ba9e55e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 13 Apr 2019 15:58:48 +0000 Subject: [PATCH] [CallingConvLower] Use SmallVectorImpl::swap git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358335 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/CallingConvLower.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h index 78aebbefc93..018c1d9d71b 100644 --- a/include/llvm/CodeGen/CallingConvLower.h +++ b/include/llvm/CodeGen/CallingConvLower.h @@ -556,7 +556,7 @@ public: // Sort the locations of the arguments according to their original position. SmallVector TmpArgLocs; - std::swap(TmpArgLocs, Locs); + TmpArgLocs.swap(Locs); auto B = TmpArgLocs.begin(), E = TmpArgLocs.end(); std::merge(B, B + NumFirstPassLocs, B + NumFirstPassLocs, E, std::back_inserter(Locs), -- 2.40.0