Skip to content

Commit 539265b

Browse files
[lldb] Simplify a string comparison (NFC) (#139932)
1 parent a05cf29 commit 539265b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ void ASTStructExtractor::ExtractFromTopLevelDecl(Decl *D) {
123123
FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D);
124124

125125
if (m_ast_context && function_decl &&
126-
!m_function.m_wrapper_function_name.compare(
127-
function_decl->getNameAsString())) {
126+
m_function.m_wrapper_function_name == function_decl->getNameAsString()) {
128127
ExtractFromFunctionDecl(function_decl);
129128
}
130129
}

0 commit comments

Comments
 (0)