projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace push_back(Constructor(foo)) with emplace_back(foo) for non-trivial types
[oota-llvm.git]
/
lib
/
CodeGen
/
SelectionDAG
/
ScheduleDAGFast.cpp
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
index 7ef213a0a38d6844aac0114078dd9fffe44bd982..61a3fd728711dc904f976153f4448eb622915d01 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
+++ b/
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
@@
-460,7
+460,7
@@
static bool CheckForLiveRegDef(SUnit *SU, unsigned Reg,
bool Added = false;
for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
if (LiveRegDefs[*AI] && LiveRegDefs[*AI] != SU) {
- if (RegAdded.insert(*AI)) {
+ if (RegAdded.insert(*AI)
.second
) {
LRegs.push_back(*AI);
Added = true;
}