[Lldb-commits] [lldb] [lldb] Simplify a string comparison (NFC) (PR #139932)
via lldb-commits
lldb-commits at lists.llvm.org
Wed May 14 10:08:32 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/139932.diff
1 Files Affected:
- (modified) lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp (+1-2)
``````````diff
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
index a2722db5d24a0..451cf40e2818d 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
@@ -123,8 +123,7 @@ void ASTStructExtractor::ExtractFromTopLevelDecl(Decl *D) {
FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D);
if (m_ast_context && function_decl &&
- !m_function.m_wrapper_function_name.compare(
- function_decl->getNameAsString())) {
+ m_function.m_wrapper_function_name == function_decl->getNameAsString()) {
ExtractFromFunctionDecl(function_decl);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/139932
More information about the lldb-commits
mailing list