diff options
author | Craig Topper <craig.topper@intel.com> | 2018-03-24 22:58:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-03-24 22:58:00 +0000 |
commit | 59d13776f73776227066dcd046906252d03eed6a (patch) | |
tree | 9a052df83a3fb1e957b19b42e689309ae095d0ad | |
parent | c413e4d9b80498143841edb585111880dc6b4913 (diff) | |
download | bcm5719-llvm-59d13776f73776227066dcd046906252d03eed6a.tar.gz bcm5719-llvm-59d13776f73776227066dcd046906252d03eed6a.zip |
[SchedModel] Use std::move to replace a vector instead of vector::swap
We don't really care about the old vector value so we don't care to swap it.
llvm-svn: 328440
-rw-r--r-- | llvm/utils/TableGen/CodeGenSchedule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenSchedule.cpp b/llvm/utils/TableGen/CodeGenSchedule.cpp index cd8f3e8f169..466e915cdad 100644 --- a/llvm/utils/TableGen/CodeGenSchedule.cpp +++ b/llvm/utils/TableGen/CodeGenSchedule.cpp @@ -710,7 +710,7 @@ unsigned CodeGenSchedModels::addSchedClass(Record *ItinClassDef, SchedClasses[Idx].ProcIndices.end(), ProcIndices.begin(), ProcIndices.end(), std::back_inserter(PI)); - SchedClasses[Idx].ProcIndices.swap(PI); + SchedClasses[Idx].ProcIndices = std::move(PI); return Idx; } Idx = SchedClasses.size(); |