[Lldb-commits] [lldb] [lldb] Remove duplicate else-if branch (NFC) (PR #81018)

via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 7 10:09:26 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Dave Lee (kastiglione)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/81018.diff


1 Files Affected:

- (modified) lldb/source/Core/FormatEntity.cpp (-3) 


``````````diff
diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp
index 3c665c2eb2133..2a68d3938a201 100644
--- a/lldb/source/Core/FormatEntity.cpp
+++ b/lldb/source/Core/FormatEntity.cpp
@@ -2203,9 +2203,6 @@ static Status ParseInternal(llvm::StringRef &format, Entry &parent_entry,
                                                  entry.printf_format.c_str());
                   return error;
                 }
-              } else if (FormatManager::GetFormatFromCString(
-                             entry.printf_format.c_str(), true, entry.fmt)) {
-                clear_printf = true;
               } else if (entry.printf_format == "tid") {
                 verify_is_thread_id = true;
               } else {

``````````

</details>


https://github.com/llvm/llvm-project/pull/81018


More information about the lldb-commits mailing list