[PATCH] D43576: Solution to fix PR27066 - Redefinition with same mangled name as another definition (dllexport and uuid)

Zahira Ammarguellat via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 13:39:30 PDT 2019


zahiraam added inline comments.


================
Comment at: include/clang/AST/Decl.h:4303
+
+   StringLiteral *getSTLUuid() { return STLUuid; }
+};
----------------
rsmith wrote:
> What does "STL" mean here?
Renamed it.


================
Comment at: lib/CodeGen/CodeGenModule.cpp:1071-1073
+  const auto ExistingRecord = Manglings.find(MangledName);
+  if (ExistingRecord != std::end(Manglings))
+    Manglings.remove(&(*ExistingRecord));
----------------
rsmith wrote:
> Was this supposed to be included in this patch? It looks like this is papering over a bug elsewhere.
This is the code that actually fixes the bug. The rest of the patch is to represent uuid in the AST.


================
Comment at: lib/CodeGen/CodeGenModule.cpp:1071-1073
+  const auto ExistingRecord = Manglings.find(MangledName);
+  if (ExistingRecord != std::end(Manglings))
+    Manglings.remove(&(*ExistingRecord));
----------------
zahiraam wrote:
> rsmith wrote:
> > Was this supposed to be included in this patch? It looks like this is papering over a bug elsewhere.
> This is the code that actually fixes the bug. The rest of the patch is to represent uuid in the AST.
Removed.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D43576/new/

https://reviews.llvm.org/D43576





More information about the cfe-commits mailing list