From 145449b1e420787bb99721a429341fa6be3adfb6 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 3 Jul 2022 16:10:23 +0200 Subject: Vendor import of llvm-project main llvmorg-15-init-15358-g53dc0f107877. --- lldb/source/API/SBType.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/source/API/SBType.cpp') diff --git a/lldb/source/API/SBType.cpp b/lldb/source/API/SBType.cpp index da9202bf9386..533930c0544b 100644 --- a/lldb/source/API/SBType.cpp +++ b/lldb/source/API/SBType.cpp @@ -273,6 +273,14 @@ bool SBType::IsScopedEnumerationType() { return m_opaque_sp->GetCompilerType(true).IsScopedEnumerationType(); } +bool SBType::IsAggregateType() { + LLDB_INSTRUMENT_VA(this); + + if (!IsValid()) + return false; + return m_opaque_sp->GetCompilerType(true).IsAggregateType(); +} + lldb::SBType SBType::GetFunctionReturnType() { LLDB_INSTRUMENT_VA(this); -- cgit v1.3