[Lldb-commits] [lldb] [lldb][TypeSystemClang][NFC] Clean up TypeSystemClang::GetBitSize (PR #100674)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 25 22:05:39 PDT 2024


================
@@ -4725,67 +4725,69 @@ TypeSystemClang::GetFloatTypeSemantics(size_t byte_size) {
   return llvm::APFloatBase::Bogus();
 }
 
+std::optional<uint64_t>
+TypeSystemClang::GetObjCBitSize(QualType qual_type,
+                                ExecutionContextScope *exe_scope) {
+  assert(qual_type->isObjCObjectOrInterfaceType());
+  ExecutionContext exe_ctx(exe_scope);
+  Process *process = exe_ctx.GetProcessPtr();
----------------
JDevlieghere wrote:

Nit: you could move this into the if right below. 

https://github.com/llvm/llvm-project/pull/100674


More information about the lldb-commits mailing list