[clang] [DebugMetadata][DwarfDebug] Clone uniqued function-local types after metadata loading (PR #68986)

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 09:23:50 PDT 2023


================
@@ -731,6 +731,29 @@ class MetadataLoader::MetadataLoaderImpl {
     upgradeCULocals();
   }
 
+  void cloneLocalTypes() {
+    for (int I = MetadataList.size() - 1; I >= 0; --I) {
----------------
dwblaikie wrote:

any particular reason this iterates in reverse? Probably worth a comment explaining it?

https://github.com/llvm/llvm-project/pull/68986


More information about the cfe-commits mailing list