]> granicus.if.org Git - llvm/commitdiff
[CallingConvLower] Use SmallVectorImpl::swap
authorFangrui Song <maskray@google.com>
Sat, 13 Apr 2019 15:58:48 +0000 (15:58 +0000)
committerFangrui Song <maskray@google.com>
Sat, 13 Apr 2019 15:58:48 +0000 (15:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358335 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/CallingConvLower.h

index 78aebbefc932e6cc5eaae51e7863baf217d8dffe..018c1d9d71b0cfe6614cc6e1a052c02b055e4a60 100644 (file)
@@ -556,7 +556,7 @@ public:
 
     // Sort the locations of the arguments according to their original position.
     SmallVector<CCValAssign, 16> 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),