[lldb] Use lldbassert in BuildObjCObjectPointerType
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 25 Jan 2023 00:29:26 +0000 (16:29 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 30 Jan 2023 21:52:44 +0000 (13:52 -0800)
commit8b1cd3749eb6872b3a71cee4fe65ae3b9de4dc93
tree357165044de8ef633f4f99a15ffde8a00888a782
parent0a51eeda1ef43d0f9a73ed2ac15f602262943ea1
[lldb] Use lldbassert in BuildObjCObjectPointerType

This assert is only checked in Debug builds but ignored in all other
builds. This replaces this code with lldbassert which should print a
warning to the user in release builds and actually asserts in debug
builds.

Differential revision: https://reviews.llvm.org/D76697
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp