[Demangle] fix windows tests
authorNick Desaulniers <ndesaulniers@google.com>
Thu, 20 Apr 2023 22:59:10 +0000 (15:59 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Thu, 20 Apr 2023 23:41:09 +0000 (16:41 -0700)
commit6bad76c7ae93a94fbac39db08fee23ce46d97fdb
tree617e9a464bd0511f462dbc259921510cb9cd30dc
parentba38640b9901d239e32e12c6569f7364d00af922
[Demangle] fix windows tests

My reland of https://reviews.llvm.org/D148546 has caused a few windows
demangler tests to fail when run with -DLLVM_ENABLE_EXPENSIVE_CHECKS=ON
on windows.

I have a sneaking suspicion that MSVC's
std::string_view::iterator::operator* may be missing a nullptr check.

Link: https://lab.llvm.org/buildbot/#/builders/42/builds/9723/steps/7/logs/stdio
Reviewed By: ayzhao

Differential Revision: https://reviews.llvm.org/D148852
llvm/lib/Demangle/MicrosoftDemangle.cpp