Skip to content

Commit

Permalink
Fix op name in string
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Jan 3, 2025
1 parent bcfe36d commit 525e860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/qsc_codegen/src/qir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ fn fcmp_to_qir(
let var_ty = get_variable_ty(variable);
assert_eq!(
lhs_ty, rhs_ty,
"mismatched input types ({lhs_ty}, {rhs_ty}) for icmp {op}"
"mismatched input types ({lhs_ty}, {rhs_ty}) for fcmp {op}"
);

assert_eq!(var_ty, "i1", "unsupported output type {var_ty} for icmp");
assert_eq!(var_ty, "i1", "unsupported output type {var_ty} for fcmp");
format!(
" {} = fcmp {} {lhs_ty} {}, {}",
ToQir::<String>::to_qir(&variable.variable_id, program),
Expand Down

0 comments on commit 525e860

Please sign in to comment.