Use checked_mod in ir operations to avoid panics #6150
Labels
audit-report
Related to the audit report
bug
Something isn't working
compiler: ir
IRgen and sway-ir including optimization passes
compiler: optimization
IR Optimization Passes
We should use checked_mod for the Mod operations to avoid panics. This also makes sense in the context of fuel since the flag may allow division by 0 to not abort execution.
The text was updated successfully, but these errors were encountered: