From f301c3f754c06c3fdd9c89983f5ff49e2e3ecc91 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 14 May 2025 08:58:58 -0700 Subject: [PATCH] [lldb] Simplify a string comparison (NFC) --- .../Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(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); } }