Skip to content

Commit 9d09842

Browse files
committed
Add and change a TODO
1 parent 3e35fab commit 9d09842

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
181181
}
182182

183183
let value = self.const_uint_big(self.type_ix(bitsize), data);
184+
// TODO(bjorn3): assert size is correct
184185
self.const_bitcast(value, ty)
185186
}
186187
Scalar::Ptr(ptr, _size) => {

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
3131
pub codegen_unit: &'tcx CodegenUnit<'tcx>,
3232
pub context: &'gcc Context<'gcc>,
3333

34-
// TODO(bjorn3): First set it to a dummy function to avoid using Option?
34+
// TODO(bjorn3): Can this field be removed?
3535
pub current_func: RefCell<Option<Function<'gcc>>>,
3636
pub normal_function_addresses: RefCell<FxHashSet<RValue<'gcc>>>,
3737

0 commit comments

Comments
 (0)