[llvm] b325604 - [TableGen] Change push_back back to emplace_back.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 23:22:08 PDT 2023
Author: Craig Topper
Date: 2023-03-22T23:17:36-07:00
New Revision: b3256047d01f3cc57a617d984612d63b28998de7
URL: https://github.com/llvm/llvm-project/commit/b3256047d01f3cc57a617d984612d63b28998de7
DIFF: https://github.com/llvm/llvm-project/commit/b3256047d01f3cc57a617d984612d63b28998de7.diff
LOG: [TableGen] Change push_back back to emplace_back.
This was a mistake I made in 021edda0b20468e20a72b1788721b2b70228bffb.
Added:
Modified:
llvm/utils/TableGen/CodeGenHwModes.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/CodeGenHwModes.cpp b/llvm/utils/TableGen/CodeGenHwModes.cpp
index d8652dfa121f..2171507f4c63 100644
--- a/llvm/utils/TableGen/CodeGenHwModes.cpp
+++ b/llvm/utils/TableGen/CodeGenHwModes.cpp
@@ -70,7 +70,7 @@ CodeGenHwModes::CodeGenHwModes(RecordKeeper &RK) : Records(RK) {
// to accept references to it. We need to ignore the definition here.
if (R->getName() == DefaultModeName)
continue;
- Modes.push_back(R);
+ Modes.emplace_back(R);
ModeIds.insert(std::make_pair(R, Modes.size()));
}
More information about the llvm-commits
mailing list