File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -818,7 +818,7 @@ class InstructionLLVMC : public lldb_private::Instruction {
818
818
return std::make_pair (ret, osi);
819
819
}
820
820
case ' x' :
821
- if (! str. compare ( " 0" ) ) {
821
+ if (str == " 0" ) {
822
822
is_hex = true ;
823
823
str.push_back (*osi);
824
824
} else {
Original file line number Diff line number Diff line change @@ -83,14 +83,14 @@ void ASTResultSynthesizer::TransformTopLevelDecl(Decl *D) {
83
83
} else if (!m_top_level) {
84
84
if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D)) {
85
85
if (m_ast_context &&
86
- ! method_decl->getSelector ().getAsString (). compare ( " $__lldb_expr:" ) ) {
86
+ method_decl->getSelector ().getAsString () == " $__lldb_expr:" ) {
87
87
RecordPersistentTypes (method_decl);
88
88
SynthesizeObjCMethodResult (method_decl);
89
89
}
90
90
} else if (FunctionDecl *function_decl = dyn_cast<FunctionDecl>(D)) {
91
91
// When completing user input the body of the function may be a nullptr.
92
92
if (m_ast_context && function_decl->hasBody () &&
93
- ! function_decl->getNameInfo ().getAsString (). compare ( " $__lldb_expr" ) ) {
93
+ function_decl->getNameInfo ().getAsString () == " $__lldb_expr" ) {
94
94
RecordPersistentTypes (function_decl);
95
95
SynthesizeFunctionResult (function_decl);
96
96
}
Original file line number Diff line number Diff line change @@ -278,9 +278,9 @@ size_t ELFLinuxPrStatus::GetSize(const lldb_private::ArchSpec &arch) {
278
278
if (arch.IsMIPS ()) {
279
279
std::string abi = arch.GetTargetABI ();
280
280
assert (!abi.empty () && " ABI is not set" );
281
- if (! abi. compare ( " n64" ) )
281
+ if (abi == " n64" )
282
282
return sizeof (ELFLinuxPrStatus);
283
- else if (! abi. compare ( " o32" ) )
283
+ else if (abi == " o32" )
284
284
return mips_linux_pr_status_size_o32;
285
285
// N32 ABI
286
286
return mips_linux_pr_status_size_n32;
You can’t perform that action at this time.
0 commit comments