projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
When merging two common GlobalValues, keep the largest.
[oota-llvm.git]
/
lib
/
TableGen
/
Record.cpp
diff --git
a/lib/TableGen/Record.cpp
b/lib/TableGen/Record.cpp
index d4800c4e7a9e542fd7515d4595eed2a225cbdd81..34e3ab4a2e3af7189ec426b4f5104de7aa789c58 100644
(file)
--- a/
lib/TableGen/Record.cpp
+++ b/
lib/TableGen/Record.cpp
@@
-2031,7
+2031,7
@@
RecordKeeper::getAllDerivedDefinitions(const std::string &ClassName) const {
std::vector<Record*> Defs;
for (const auto &D : getDefs())
if (D.second->isSubClassOf(Class))
- Defs.push_back(D.second);
+ Defs.push_back(D.second
.get()
);
return Defs;
}