[Lldb-commits] [lldb] 539265b - [lldb] Simplify a string comparison (NFC) (#139932)

via lldb-commits lldb-commits at lists.llvm.org
Wed May 14 11:21:46 PDT 2025


Author: Kazu Hirata
Date: 2025-05-14T11:21:42-07:00
New Revision: 539265b9044f8cda513e5e65d11f2630a32176cf

URL: https://github.com/llvm/llvm-project/commit/539265b9044f8cda513e5e65d11f2630a32176cf
DIFF: https://github.com/llvm/llvm-project/commit/539265b9044f8cda513e5e65d11f2630a32176cf.diff

LOG: [lldb] Simplify a string comparison (NFC) (#139932)

Added: 
    

Modified: 
    lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp

Removed: 
    


################################################################################
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);
   }
 }


        


More information about the lldb-commits mailing list