mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 11:37:39 +00:00
Add and change a TODO
This commit is contained in:
parent
3e35fab71e
commit
9d098424cd
@ -181,6 +181,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let value = self.const_uint_big(self.type_ix(bitsize), data);
|
let value = self.const_uint_big(self.type_ix(bitsize), data);
|
||||||
|
// TODO(bjorn3): assert size is correct
|
||||||
self.const_bitcast(value, ty)
|
self.const_bitcast(value, ty)
|
||||||
}
|
}
|
||||||
Scalar::Ptr(ptr, _size) => {
|
Scalar::Ptr(ptr, _size) => {
|
||||||
|
@ -31,7 +31,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
|
|||||||
pub codegen_unit: &'tcx CodegenUnit<'tcx>,
|
pub codegen_unit: &'tcx CodegenUnit<'tcx>,
|
||||||
pub context: &'gcc Context<'gcc>,
|
pub context: &'gcc Context<'gcc>,
|
||||||
|
|
||||||
// TODO(bjorn3): First set it to a dummy function to avoid using Option?
|
// TODO(bjorn3): Can this field be removed?
|
||||||
pub current_func: RefCell<Option<Function<'gcc>>>,
|
pub current_func: RefCell<Option<Function<'gcc>>>,
|
||||||
pub normal_function_addresses: RefCell<FxHashSet<RValue<'gcc>>>,
|
pub normal_function_addresses: RefCell<FxHashSet<RValue<'gcc>>>,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user