[lldb][NFC] Don't hide a bool in LibCxxOptional's OptionalFrontend::m_size
authorRaphael Isemann <teemperor@gmail.com>
Mon, 10 Feb 2020 11:45:19 +0000 (12:45 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 10 Feb 2020 12:03:06 +0000 (13:03 +0100)
commit2a3ef377ec00e7c7d3f4c47614ab6baee727cd82
tree827020cc4ecbe45244642d5fc522edf83b47e37a
parentd0c4d4fe0929098a98d9fb20c5e5e19d71341517
[lldb][NFC] Don't hide a bool in LibCxxOptional's OptionalFrontend::m_size

m_size can only be 1 or 0 and indicates if the optional has a value. Calling
it 'm_size', giving it a size_t data type and then also comparing indices against
'size' is very confusing. Let's just make this a bool.
lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp