[PATCH] D124524: [demangler] Avoid nullptr UB
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 09:18:20 PDT 2022
dblaikie added a comment.
Hmm - why does this need an allocation, though? A `StringPiece(nullptr, nullptr)` sounds valid to me? Is something using a distinction between StringPiece that's zero-length but non-null and StringPiece that's null?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124524/new/
https://reviews.llvm.org/D124524
More information about the llvm-commits
mailing list