dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Fair enough - all seems a bit unfortunate to be pushing these attributes 
through to places they don't technically apply to (both complicates the 
implementation, and might be confusing to users).

Thanks for trying the prototype - not clear what the right design is, so let's 
go with what you've got here.



================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1249
+  llvm::DIType *WrappedDI = getOrCreateType(WrappedTy, Unit);
+  if (Annotations.size() == 0)
+    return WrappedDI;
----------------
use `empty()` rather than `size() == 0`


================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1252
+
+  if (WrappedDI == nullptr)
+    WrappedDI = DBuilder.createUnspecifiedType("void");
----------------
probably write this as `if (!WrappedDI)`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143967

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to