Skip to content

Commit

Permalink
comment debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
molikto committed Apr 5, 2022
1 parent c98dd8b commit d56ec71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rustc_codegen_spirv/src/linker/inline_globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ enum FunctionArg {
}

pub fn inline_global_varaibles(sess: &Session, module: &mut Module) -> super::Result<()> {
let mut i = 0;
let mut cont = true;
let mut has_run = false;
//let mut i = 0;
//std::fs::write("res0.txt", module.disassemble());
while cont {
cont = inline_global_varaibles_rec(module)?;
has_run = has_run || cont;
i += 1;
// i += 1;
//std::fs::write(format!("res{}.txt", i), module.disassemble());
}
// needed because inline global create duplicate types...
Expand Down

0 comments on commit d56ec71

Please sign in to comment.