diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2024-06-20 10:46:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 10:46:26 -0700 |
commit | 5e9f247c064cb2361cd641f62eb4b7049d21641a (patch) | |
tree | 22409872ba443d5e800bd04a352fd473acac0ad7 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 482c41e992c1edf8833a4577b56ff9dda49fbc83 (diff) | |
download | llvm-5e9f247c064cb2361cd641f62eb4b7049d21641a.zip llvm-5e9f247c064cb2361cd641f62eb4b7049d21641a.tar.gz llvm-5e9f247c064cb2361cd641f62eb4b7049d21641a.tar.bz2 |
[lldb] Make LanguageRuntime::GetTypeBitSize return an optional (NFC) (#96013)
Make LanguageRuntime::GetTypeBitSize return an optional. This should be
NFC, though the ObjCLanguageRuntime implementation is (possibly) more
defensive against returning 0.
I'm not sure if it's possible for both `m_ivar.size` and `m_ivar.offset`
to be zero. Previously, we'd return 0 and cache it, only to discard it
the next time when finding it in the cache, and recomputing it again.
The new code will avoid putting it in the cache in the first place.
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions