Skip to content

Commit

Permalink
fix: Add size checks to integer literals (#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher authored and guipublic committed Oct 26, 2023
1 parent 2e5ef23 commit a9d7e82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/noirc_evaluator/src/ssa/ssa_gen/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ impl<'a> FunctionContext<'a> {
Ok(self.builder.numeric_constant(value, typ))
}





/// Insert a binary instruction at the end of the current block.
/// Converts the form of the binary instruction as necessary
/// (e.g. swapping arguments, inserting a not) to represent it in the IR.
Expand Down

0 comments on commit a9d7e82

Please sign in to comment.