summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/CTagsEmitter.cpp4
-rw-r--r--llvm/utils/TableGen/PseudoLoweringEmitter.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/CTagsEmitter.cpp b/llvm/utils/TableGen/CTagsEmitter.cpp
index 072dcb5dd61..bbed92a1385 100644
--- a/llvm/utils/TableGen/CTagsEmitter.cpp
+++ b/llvm/utils/TableGen/CTagsEmitter.cpp
@@ -75,9 +75,9 @@ void CTagsEmitter::run(raw_ostream &OS) {
// Collect tags.
Tags.reserve(Classes.size() + Defs.size());
for (const auto &C : Classes)
- Tags.push_back(Tag(C.first, locate(C.second)));
+ Tags.push_back(Tag(C.first, locate(C.second.get())));
for (const auto &D : Defs)
- Tags.push_back(Tag(D.first, locate(D.second)));
+ Tags.push_back(Tag(D.first, locate(D.second.get())));
// Emit tags.
std::sort(Tags.begin(), Tags.end());
OS << "!_TAG_FILE_FORMAT\t1\t/original ctags format/\n";
diff --git a/llvm/utils/TableGen/PseudoLoweringEmitter.cpp b/llvm/utils/TableGen/PseudoLoweringEmitter.cpp
index e8933b4fac4..ebb43f06526 100644
--- a/llvm/utils/TableGen/PseudoLoweringEmitter.cpp
+++ b/llvm/utils/TableGen/PseudoLoweringEmitter.cpp
@@ -280,7 +280,7 @@ void PseudoLoweringEmitter::run(raw_ostream &o) {
for (const auto &D : Records.getDefs()) {
if (D.second->isSubClassOf(ExpansionClass) &&
D.second->isSubClassOf(InstructionClass))
- Insts.push_back(D.second);
+ Insts.push_back(D.second.get());
}
// Process the pseudo expansion definitions, validating them as we do so.
OpenPOWER on IntegriCloud