about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-01-08 15:00:25 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-01-21 08:27:21 +0000
commit49e047f5aa09d8179dce0d36df8a8263b144de81 (patch)
tree2417f1332096205e91ec65df4d40fee60ce99457
parent4600047767f36d12dff51e2b844ed67f81d7adda (diff)
downloadrust-49e047f5aa09d8179dce0d36df8a8263b144de81.tar.gz
rust-49e047f5aa09d8179dce0d36df8a8263b144de81.zip
Treat undef bytes as equal to any other byte
-rw-r--r--src/common.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.rs b/src/common.rs
index f43743fc2a4..bd5d6ba387c 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -64,6 +64,11 @@ impl<'gcc, 'tcx> ConstCodegenMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
         if type_is_pointer(typ) { self.context.new_null(typ) } else { self.const_int(typ, 0) }
     }
 
+    fn is_undef(&self, _val: RValue<'gcc>) -> bool {
+        // FIXME: actually check for undef
+        false
+    }
+
     fn const_undef(&self, typ: Type<'gcc>) -> RValue<'gcc> {
         let local = self.current_func.borrow().expect("func").new_local(None, typ, "undefined");
         if typ.is_struct().is_some() {