about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-02-26 18:29:23 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-02-26 18:30:07 +0100
commit9d098424cd772ab067b0f8ecb67a7eadbe9d028c (patch)
tree076d060402db6e09533f8d33019a0b3660d89d57
parent3e35fab71e5b4fe3cc1aa5330c1fd9208ace0dd9 (diff)
downloadrust-9d098424cd772ab067b0f8ecb67a7eadbe9d028c.tar.gz
rust-9d098424cd772ab067b0f8ecb67a7eadbe9d028c.zip
Add and change a TODO
-rw-r--r--src/common.rs1
-rw-r--r--src/context.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index 840cbc70c34..e36e5bb2382 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -181,6 +181,7 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
                 }
 
                 let value = self.const_uint_big(self.type_ix(bitsize), data);
+                // TODO(bjorn3): assert size is correct
                 self.const_bitcast(value, ty)
             }
             Scalar::Ptr(ptr, _size) => {
diff --git a/src/context.rs b/src/context.rs
index 91259836f6d..d20356b1266 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -31,7 +31,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
     pub codegen_unit: &'tcx CodegenUnit<'tcx>,
     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 normal_function_addresses: RefCell<FxHashSet<RValue<'gcc>>>,