Skip to content

Commit

Permalink
Change Program to &Program
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Fischman committed Mar 15, 2024
1 parent be2159e commit e3faef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brilift/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::translator::{find_func, Translator};
use bril_rs::Program;
use cranelift_object::ObjectModule;

pub fn compile(program: Program, target: Option<String>, opt_level: &str, output: &str) {
pub fn compile(program: &Program, target: Option<String>, opt_level: &str, output: &str) {
// Compile.
let mut trans = Translator::<ObjectModule>::new(target, opt_level);
trans.compile_prog(&program, false);
Expand Down

0 comments on commit e3faef8

Please sign in to comment.