diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/TableGen/JSONBackend.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/TableGen/JSONBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/TableGen/JSONBackend.cpp b/contrib/llvm-project/llvm/lib/TableGen/JSONBackend.cpp index e38903910275..6dc466e29df3 100644 --- a/contrib/llvm-project/llvm/lib/TableGen/JSONBackend.cpp +++ b/contrib/llvm-project/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; |