Fix typos
This commit is contained in:
parent
aed7ec42b3
commit
c4556a5a65
1 changed files with 2 additions and 4 deletions
|
@ -126,14 +126,14 @@ impl TypeMap<'ll, 'tcx> {
|
||||||
// This kind of type cannot be properly represented
|
// This kind of type cannot be properly represented
|
||||||
// via LLVM debuginfo. As a workaround,
|
// via LLVM debuginfo. As a workaround,
|
||||||
// we register a temporary Ty to metadata mapping
|
// we register a temporary Ty to metadata mapping
|
||||||
// for the function before we compute its actual metadat.a
|
// for the function before we compute its actual metadata.
|
||||||
// If the metadata computation ends up recursing back to the
|
// If the metadata computation ends up recursing back to the
|
||||||
// original function, it will use the temporary mapping
|
// original function, it will use the temporary mapping
|
||||||
// for the inner self-reference, preventing us from
|
// for the inner self-reference, preventing us from
|
||||||
// recursing forever.
|
// recursing forever.
|
||||||
//
|
//
|
||||||
// This function is used to remove the temporary metadata
|
// This function is used to remove the temporary metadata
|
||||||
// mapping after we've computed the actual metadat
|
// mapping after we've computed the actual metadata
|
||||||
fn remove_type(
|
fn remove_type(
|
||||||
&mut self,
|
&mut self,
|
||||||
type_: Ty<'tcx>,
|
type_: Ty<'tcx>,
|
||||||
|
@ -663,8 +663,6 @@ pub fn type_metadata(
|
||||||
size.bits(),
|
size.bits(),
|
||||||
align.bits() as u32,
|
align.bits() as u32,
|
||||||
DW_ATE_unsigned)
|
DW_ATE_unsigned)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue