about summary refs log tree commit diff
path: root/compiler/rustc_llvm
diff options
context:
space:
mode:
authordianqk <dianqk@dianqk.net>2025-06-18 22:04:48 +0800
committerdianqk <dianqk@dianqk.net>2025-10-02 14:55:51 +0800
commit1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee (patch)
tree8d7ac71c287300c9ce4f2b3a1cfbe05b998bf9ae /compiler/rustc_llvm
parent85b2f706939528b5796d98e82c183637f8338cd1 (diff)
downloadrust-1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee.tar.gz
rust-1bd89bd42e0bb6f29b8af5d6bdf3f756196bb8ee.zip
codegen: Generate `dbg_value` for the ref statement
Diffstat (limited to 'compiler/rustc_llvm')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index 2b83ea24ac6..e38474f09ff 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -58,6 +58,7 @@ using namespace llvm::object;
 // This opcode is an LLVM detail that could hypothetically change (?), so
 // verify that the hard-coded value in `dwarf_const.rs` still agrees with LLVM.
 static_assert(dwarf::DW_OP_LLVM_fragment == 0x1000);
+static_assert(dwarf::DW_OP_stack_value == 0x9f);
 
 // LLVMAtomicOrdering is already an enum - don't create another
 // one.