diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-24 15:03:44 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-24 15:03:44 +0000 |
commit | 4b4fe385e49bd883fd183b5f21c1ea486c722e61 (patch) | |
tree | c3d8fdb355c9c73e57723718c22103aaf7d15aa6 /llvm/lib/TableGen/JSONBackend.cpp | |
parent | 1f917f69ff07f09b6dbb670971f57f8efe718b84 (diff) |
Diffstat (limited to 'llvm/lib/TableGen/JSONBackend.cpp')
-rw-r--r-- | llvm/lib/TableGen/JSONBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/JSONBackend.cpp b/llvm/lib/TableGen/JSONBackend.cpp index e38903910275..6dc466e29df3 100644 --- a/llvm/lib/TableGen/JSONBackend.cpp +++ b/llvm/lib/TableGen/JSONBackend.cpp @@ -129,13 +129,13 @@ void JSONEmitter::run(raw_ostream &OS) { // construct the array for each one. std::map<std::string, json::Array> instance_lists; for (const auto &C : Records.getClasses()) { - auto &Name = C.second->getNameInitAsString(); + const auto Name = C.second->getNameInitAsString(); (void)instance_lists[Name]; } // Main iteration over the defs. for (const auto &D : Records.getDefs()) { - auto &Name = D.second->getNameInitAsString(); + const auto Name = D.second->getNameInitAsString(); auto &Def = *D.second; json::Object obj; |