Use ObjInsArgValue::loose_eq in arg_eq

This commit is contained in:
Luke Street 2025-01-04 20:58:58 -07:00
parent c3e3d175c5
commit 0692deac59
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ fn arg_eq(
_ => false,
},
ObjInsArg::Arg(l) => match right {
ObjInsArg::Arg(r) => l == r,
ObjInsArg::Arg(r) => l.loose_eq(r),
// If relocations are relaxed, match if left is a constant and right is a reloc
// Useful for instances where the target object is created without relocations
ObjInsArg::Reloc => config.relax_reloc_diffs,