[PATCH] D124524: [demangler] Avoid nullptr UB
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 05:28:22 PDT 2022
xbolva00 added subscribers: rjmccall, xbolva00.
xbolva00 added a comment.
Can you show some C++ rule why you think that
memcpy(nullptr, nullptr, 0) is UB?
cc @rjmccall
Some time ago I was told this usage is perfectly fine and LLVM cannot assume that dst and src are nonnull pointers.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124524/new/
https://reviews.llvm.org/D124524
More information about the llvm-commits
mailing list