[LLDB] Fix crash when printing a struct with a static signed char member
authorDavid Spickett <david.spickett@linaro.org>
Wed, 5 Oct 2022 11:30:05 +0000 (11:30 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Fri, 7 Oct 2022 09:11:15 +0000 (09:11 +0000)
commit5a9e21305803336dc359f72014849845b1a7e173
treebb553b23780bd16c5e35b5e0808fee58c7a0dfed
parent8307f6c854b64d00bac3d621917ff11bec1afb32
[LLDB] Fix crash when printing a struct with a static signed char member

As with static bool for whatever reason printing them on their own
worked fine but wasn't handled when you printed the whole type.

I don't see a good way to test this from clang's side so our existing
tests will have to do.

We can now print all of the struct "A", so there's no need for a separate
one for static bool testing. I've not checked the output, just that it
succeeds. This saves us having to handle different min/max between systems.

Depends on D135169

Reviewed By: aeubanks, shafik

Differential Revision: https://reviews.llvm.org/D135170
clang/lib/AST/StmtPrinter.cpp
lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
lldb/test/API/lang/cpp/const_static_integral_member/main.cpp