Skip to content

Commit b82f6c5

Browse files
committed
rustc_codegen_llvm: always set AlwaysPreserve on all debuginfo variables.
1 parent ed853b8 commit b82f6c5

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_codegen_llvm/debuginfo

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/debuginfo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
569569
file_metadata,
570570
loc.line as c_uint,
571571
type_metadata,
572-
self.sess().opts.optimize != config::OptLevel::No,
572+
true,
573573
DIFlags::FlagZero,
574574
argument_index,
575575
align.bytes() as u32,

0 commit comments

Comments
 (0)