Undoes a lot of the code added in D135169 to piggyback off of the enum logic in TypeSystemClang::SetIntegerInitializerForVariable().
Fixes #58383.
Paths
| Differential D137045
[lldb] Don't crash when printing static enum members with bool as underlying type ClosedPublic Authored by aeubanks on Oct 30 2022, 12:45 PM.
Details Summary Undoes a lot of the code added in D135169 to piggyback off of the enum logic in TypeSystemClang::SetIntegerInitializerForVariable(). Fixes #58383.
Diff Detail
Event Timeline
Comment Actions undo a lot of code added in D135169. it seems a little overengineered when we can just check if the type is bool when setting the initializer.
This revision is now accepted and ready to land.Nov 1 2022, 2:10 AM Closed by commit rGa715b1bde910: [lldb] Don't crash when printing static enum members with bool as underlying… (authored by aeubanks). · Explain WhyNov 1 2022, 9:29 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 471856 lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
lldb/test/API/lang/cpp/const_static_integral_member/TestConstStaticIntegralMember.py
lldb/test/API/lang/cpp/const_static_integral_member/main.cpp
|
Can you call TypeSystemClang::IsBooleanType from here instead?