From 4e4eff329602831597bea0756b198c175a1388da Mon Sep 17 00:00:00 2001 From: Sylvester Hesp Date: Tue, 21 Mar 2023 13:25:08 +0100 Subject: [PATCH] Reinstated comment --- crates/rustc_codegen_spirv/src/codegen_cx/constant.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rustc_codegen_spirv/src/codegen_cx/constant.rs b/crates/rustc_codegen_spirv/src/codegen_cx/constant.rs index 93bf42e157..28b82a995d 100644 --- a/crates/rustc_codegen_spirv/src/codegen_cx/constant.rs +++ b/crates/rustc_codegen_spirv/src/codegen_cx/constant.rs @@ -324,6 +324,7 @@ impl<'tcx> ConstMethods<'tcx> for CodegenCx<'tcx> { self.tcx .sess .fatal("Non-pointer-typed scalar_to_backend Scalar::Ptr not supported"); + // unsafe { llvm::LLVMConstPtrToInt(llval, llty) } } } }