[libcxx-commits] [PATCH] D122604: [demangler] Simplify OutputBuffer initialization

Nathan Sidwell via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 2 06:23:02 PDT 2022


urnathan updated this revision to Diff 426394.
urnathan added a comment.

rebased an updated to avoid the UB discovered in the earlier version.

I went with @dblaikie's suggestion of detecting the UB at point of use.  This makes D124524 <https://reviews.llvm.org/D124524> moot.


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

https://reviews.llvm.org/D122604

Files:
  libcxxabi/src/cxa_demangle.cpp
  libcxxabi/src/demangle/Utility.h
  llvm/include/llvm/Demangle/Utility.h
  llvm/lib/Demangle/DLangDemangle.cpp
  llvm/lib/Demangle/ItaniumDemangle.cpp
  llvm/lib/Demangle/MicrosoftDemangle.cpp
  llvm/lib/Demangle/MicrosoftDemangleNodes.cpp
  llvm/lib/Demangle/RustDemangle.cpp
  llvm/unittests/Demangle/OutputBufferTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122604.426394.patch
Type: text/x-patch
Size: 10130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220502/2ba1b88e/attachment-0001.bin>


More information about the libcxx-commits mailing list