[Lldb-commits] [PATCH] D76011: Add a verification mechanism to CompilerType.

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 16 09:48:12 PDT 2020


aprantl added a comment.

Thanks for sharing your thoughts! Moving to a type-safe subclass does make sense, I don't think that calling the verifier there is the best choice. For example, if I'm calling `CompilerType::GetPointerType(CompilerType pointee)` I'd want the resulting type verified, too. Then again, if the implementation of that function calls the specialized constructor, that might be good enough.

As for null types; In swift-lldb they are constructed quite a lot, mostly as default and "error" return values from type system operations. There is probably no need for more than one kind of null type though.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76011/new/

https://reviews.llvm.org/D76011





More information about the lldb-commits mailing list