]> git.lizzy.rs Git - rust.git/commitdiff
Remove workaround for the forward progress handling in LLVM
authorAndreas Jonson <andjo403@users.noreply.github.com>
Sun, 14 Nov 2021 13:01:30 +0000 (14:01 +0100)
committerAndreas Jonson <andjo403@users.noreply.github.com>
Sun, 14 Nov 2021 15:35:09 +0000 (16:35 +0100)
src/intrinsic/mod.rs

index 64bd586662d385a863a45b0bd555d340cda24721..f3a2382ef32d901c5e179f772b51b53dbcf384f1 100644 (file)
@@ -316,7 +316,7 @@ fn codegen_intrinsic_call(&mut self, instance: Instance<'tcx>, fn_abi: &FnAbi<'t
                     extended_asm.add_input_operand(None, "r", result.llval);
                     extended_asm.add_clobber("memory");
                     extended_asm.set_volatile_flag(true);
-                    
+
                     // We have copied the value to `result` already.
                     return;
                 }
@@ -363,10 +363,6 @@ fn expect(&mut self, cond: Self::Value, _expected: bool) -> Self::Value {
         cond
     }
 
-    fn sideeffect(&mut self) {
-        // TODO(antoyo)
-    }
-
     fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
         // Unsupported.
         self.context.new_rvalue_from_int(self.int_type, 0)