Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Jun 5, 2024
1 parent c98c540 commit 2277a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/analysis/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ pub fn analysis<'module>(
// Calls to external functions have unknown return values
operand_val(caller_ctx, call_name.operand(), IntLattice::top()) <--
calls(caller_ctx, call_name, callee_name, callee_ctx),
if module.decls.get(callee_name).is_some();
if module.decls.contains_key(callee_name);

// ----------------------------------------------------------
// argc
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ pub fn analysis<'module>(
if !name.starts_with("llvm.memcpy") &&
!name.starts_with("llvm.memmove"),
if !known_functions.contains(name.as_ref()),
if sigs.get(name).is_none(),
if !sigs.contains_key(name),
if decl.has_pointer();

// Functions without signatures must be treated conservatively
Expand Down

0 comments on commit 2277a76

Please sign in to comment.