[PATCH] D149675: [Demangle] convert itaniumDemangle and nonMicrosoftDemangle to use std::string_view
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 2 14:39:58 PDT 2023
MaskRay accepted this revision.
MaskRay added inline comments.
================
Comment at: llvm/lib/Demangle/Demangle.cpp:50
+ std::string &Result) {
char *Demangled = nullptr;
+ if (isItaniumEncoding(MangledName.data()))
----------------
I think it's best for the `if (!MangledName) return false;` change to be made in this patch, not in the precursor patch.
`isItaniumEncoding`/etc still take `const char *` arguments and it makes sense for them to keep strict by disallowing `nullptr` arguments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149675/new/
https://reviews.llvm.org/D149675
More information about the llvm-commits
mailing list