From: Fangrui Song Date: Sat, 13 Apr 2019 15:58:48 +0000 (+0000) Subject: [CallingConvLower] Use SmallVectorImpl::swap X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a08823638ace7106aaf1886145b518cb1ba9e55e;p=llvm [CallingConvLower] Use SmallVectorImpl::swap git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358335 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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),