Skip to content

Commit

Permalink
[lldb] fix release build (#68979)
Browse files Browse the repository at this point in the history
due to 64d78d8 that used side effects
in assert()
  • Loading branch information
metaflow committed Oct 13, 2023
1 parent dbb9fae commit 5d35273
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lldb/source/Commands/CommandObjectTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2682,12 +2682,14 @@ class CommandObjectTargetModulesDumpSeparateDebugInfoFiles
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();
Expand Down

0 comments on commit 5d35273

Please sign in to comment.