diff options
author | Kazu Hirata <kazu@google.com> | 2025-05-14 11:21:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-14 11:21:42 -0700 |
commit | 539265b9044f8cda513e5e65d11f2630a32176cf (patch) | |
tree | 7203adc1c5a4733ce7805a4662e4c14822e6f7dc | |
parent | a05cf2927aab2494740853e6f4bd98591382e11c (diff) | |
download | llvm-539265b9044f8cda513e5e65d11f2630a32176cf.zip llvm-539265b9044f8cda513e5e65d11f2630a32176cf.tar.gz llvm-539265b9044f8cda513e5e65d11f2630a32176cf.tar.bz2 |
[lldb] Simplify a string comparison (NFC) (#139932)
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp index a2722db..451cf40e 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); } } |