To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 352a83d7 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano
Browse files

Fixed bug where TreeNode's where being created with duplicate names

parent 70da3f1b
......@@ -1270,7 +1270,7 @@ impl MuEntityHeader {
pub fn clone_with_id(&self, new_id: MuID) -> MuEntityHeader {
let mut clone = self.clone();
clone.id = new_id;
clone.name = format!("{}-#{}", clone.name, clone.id);
clone
}
}
......
......@@ -1957,10 +1957,11 @@ impl CodeGenerator for ASMCodeGen {
symbol.push_str(":end");
symbol
};
let func_symbol = mangle_name(func_name.clone());
let func_end_sym = mangle_name(func_end.clone());
self.add_asm_symbolic(directive_globl(func_end_sym.clone()));
self.add_asm_symbolic(format!("{}:", func_end_sym.clone()));
self.add_asm_symbolic(format!(".size {}, {}-{}", func_name.clone(), func_end.clone(), func_name.clone()));
self.add_asm_symbolic(format!(".size {}, {}-{}", func_symbol.clone(), func_end.clone(), func_symbol.clone()));
self.cur.as_mut().unwrap().control_flow_analysis();
......
......@@ -448,7 +448,8 @@ impl <'a> InstructionSelection {
}
}
self.backend.emit_b(EPILOGUE_BLOCK_NAME.to_string());
let epilogue_block = format!("{}:{}", self.current_fv_name, EPILOGUE_BLOCK_NAME);
self.backend.emit_b(epilogue_block);
},
Instruction_::BinOp(op, op1, op2) => {
......
......@@ -418,6 +418,6 @@ impl RegGroup {
}
}
fn make_block_name<T: MuEntity>(header: &T, label: &str) -> MuName {
format!("{}:{}", header.name(), label)
fn make_block_name<T: MuEntity>(entity: &T, label: &str) -> MuName {
format!("{}:{}", entity.name(), label)
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment