let llty = bx.fn_ptr_backend_type(fn_abi);
let llvtable = bx.pointercast(llvtable, bx.type_ptr_to(llty));
- if bx.cx().sess().opts.debugging_opts.virtual_function_elimination
+ if bx.cx().sess().opts.unstable_opts.virtual_function_elimination
&& bx.cx().sess().lto() == Lto::Fat
{
let typeid =
let gep = bx.inbounds_gep(llty, llvtable, &[bx.const_usize(self.0)]);
let ptr = bx.load(llty, gep, ptr_align);
bx.nonnull_metadata(ptr);
- // Vtable loads are invariant.
+ // VTable loads are invariant.
bx.set_invariant_load(ptr);
ptr
}
let usize_align = bx.tcx().data_layout.pointer_align.abi;
let gep = bx.inbounds_gep(llty, llvtable, &[bx.const_usize(self.0)]);
let ptr = bx.load(llty, gep, usize_align);
- // Vtable loads are invariant.
+ // VTable loads are invariant.
bx.set_invariant_load(ptr);
ptr
}