[Lldb-commits] [PATCH] D56688: Make CompilerType::getBitSize() / getByteSize() return an optional result. (NFC)
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 15 12:55:24 PST 2019
aprantl marked an inline comment as done.
aprantl added a comment.
I changed all the autos back to full types in r351237.
================
Comment at: lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp:827
CompilerType compiler_type(value->GetCompilerType());
- if (compiler_type) {
+ auto bit_size = compiler_type.GetBitSize(&thread);
+ if (bit_size) {
----------------
shafik wrote:
> Looks like you chopped out the `if (compiler_type) ` check
That's intentional since GetByteSize also checks for IsValid().
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56688/new/
https://reviews.llvm.org/D56688
More information about the lldb-commits
mailing list