diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2023-04-21 15:51:29 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2023-04-21 15:56:55 -0700 |
commit | 3a30cf212d12cc5013ec67e54530b69ee2cfc7c9 (patch) | |
tree | a9541da2318a572a7a4f531cc6e0b942df516122 /llvm/lib/Object/Archive.cpp | |
parent | c2709fcb0a5b32e42a35661fab4d5744e11d04c0 (diff) | |
download | llvm-3a30cf212d12cc5013ec67e54530b69ee2cfc7c9.zip llvm-3a30cf212d12cc5013ec67e54530b69ee2cfc7c9.tar.gz llvm-3a30cf212d12cc5013ec67e54530b69ee2cfc7c9.tar.bz2 |
[Demangle] replace std::string_view::substr which may throw
llvm/Demangle copies the implementation from libcxxabi/src/demangle/.
libcxxabi/ cannot use potentially-throwing std::string_view::substr, so
change llvm/Demangle to avoid these function calls.
I ran into linkage failures stemming from the usage of
std::string_view::substr. substr does a bounds check and may throw.
Fixes: f198e0b594aa ("[StringView] remove dropFront")
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D148959
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions