Skip to content

Commit

Permalink
Catch this error.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Feb 2, 2023
1 parent 211effa commit 8d4ea72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Futhark/Pass/Flatten.hs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ transformDistBasicOp segments env (inps, res, pe, aux, e) =
i <- letExp "i" =<< toExp (pe64 o' + flat_i)
pure (i, v')
pure $ insertIrregular shape flags offsets (distResTag res) elems' env
| otherwise ->
error "Flattening update: destination is not input."
_ -> error $ "Unhandled BasicOp:\n" ++ prettyString e
where
scalarCase =
Expand Down

0 comments on commit 8d4ea72

Please sign in to comment.