Skip to content

Commit 59c3c42

Browse files
Merge pull request #9509 from swiftlang/felipe/fix_warning_lldb
[cherry-pick][lldb] Fix a warning
2 parents b065b0e + 8d6678f commit 59c3c42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Plugins/SystemRuntime/MacOSX/AbortWithPayloadFrameRecognizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ AbortWithPayloadFrameRecognizer::RecognizeFrame(lldb::StackFrameSP frame_sp) {
175175
// For the reason string, we want the string not the address, so fetch that.
176176
std::string reason_string;
177177
Status error;
178-
size_t str_len =
179-
process->ReadCStringFromMemory(reason_addr, reason_string, error);
178+
process->ReadCStringFromMemory(reason_addr, reason_string, error);
180179
if (error.Fail()) {
181180
// Even if we couldn't read the string, return the other data.
182181
LLDB_LOG(log, "Couldn't fetch reason string: {0}.", error);

0 commit comments

Comments
 (0)