diff options
author | Mikhail Goncharov <goncharov.mikhail@gmail.com> | 2023-10-13 13:53:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 13:53:31 +0200 |
commit | 5d35273a32d239b7407338e13ed71b59174d6536 (patch) | |
tree | 871a3364a848404418e2f000958d6b81a1576aec /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | dbb9faedec5e28ab3f584f5e14d31e475ac268ac (diff) | |
download | llvm-5d35273a32d239b7407338e13ed71b59174d6536.zip llvm-5d35273a32d239b7407338e13ed71b59174d6536.tar.gz llvm-5d35273a32d239b7407338e13ed71b59174d6536.tar.bz2 |
[lldb] fix release build (#68979)
due to 64d78d8b3cd09dff32c97fbefa56bcfc8b676406 that used side effects
in assert()
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 0c378b0..7c20893 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -2682,12 +2682,14 @@ protected: llvm::StringRef type; llvm::StringRef symfile; StructuredData::Array *files; - assert(separate_debug_info_list->GetValueForKeyAsString("type", - type)); - assert(separate_debug_info_list->GetValueForKeyAsString("symfile", - symfile)); - assert(separate_debug_info_list->GetValueForKeyAsArray( - "separate-debug-info-files", files)); + if (!(separate_debug_info_list->GetValueForKeyAsString("type", + type) && + separate_debug_info_list->GetValueForKeyAsString("symfile", + symfile) && + separate_debug_info_list->GetValueForKeyAsArray( + "separate-debug-info-files", files))) { + assert(false); + } strm << "Symbol file: " << symfile; strm.EOL(); |