Skip to content

Commit

Permalink
Remove unused le_op
Browse files Browse the repository at this point in the history
  • Loading branch information
sortraev committed Nov 26, 2024
1 parent d1642cf commit ef92359
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Futhark/Internalise/Exps.hs
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ internaliseAppExp desc _ (E.Range start maybe_second end loc) = do
)
++ [ErrorVal int64 end'_i64, " is invalid."]

(it, le_op, lt_op) <-
(it, lt_op) <-
case E.typeOf start of
E.Scalar (E.Prim (E.Signed it)) -> pure (it, CmpSle it, CmpSlt it)
E.Scalar (E.Prim (E.Unsigned it)) -> pure (it, CmpUle it, CmpUlt it)
E.Scalar (E.Prim (E.Signed it)) -> pure (it, CmpSlt it)
E.Scalar (E.Prim (E.Unsigned it)) -> pure (it, CmpUlt it)
start_t -> error $ "Start value in range has type " ++ prettyString start_t

let one = intConst it 1
Expand Down

0 comments on commit ef92359

Please sign in to comment.