From 4e5947453061cdd023e1a3d6a945497243709066 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 3 Feb 2021 02:46:50 +0100 Subject: [PATCH] [lldb/test] Stop recording fundamental return types (NFC) It seems that recording fundamental return type is bogus. This can trigger asserts when running a test with reproducers so this patch updates the `SBTarget::IsLoaded` test to stop recording them. Differential Revision: https://reviews.llvm.org/D95686 Signed-off-by: Med Ismail Bennani --- lldb/source/API/SBTarget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 72702b9b6a7b4..b376bc4bd7560 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -2416,13 +2416,13 @@ bool SBTarget::IsLoaded(const SBModule &module) const { TargetSP target_sp(GetSP()); if (!target_sp) - return LLDB_RECORD_RESULT(false); + return false; ModuleSP module_sp(module.GetSP()); if (!module_sp) - return LLDB_RECORD_RESULT(false); + return false; - return LLDB_RECORD_RESULT(module_sp->IsLoadedInTarget(target_sp.get())); + return module_sp->IsLoadedInTarget(target_sp.get()); } lldb::SBLaunchInfo SBTarget::GetLaunchInfo() const {