Skip to content

Commit ef1a6d7

Browse files
committed
Fix error related to var tracking assignments
1 parent dac3595 commit ef1a6d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/base.rs

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
8989
for arg in &tcx.sess.opts.cg.llvm_args {
9090
context.add_command_line_option(arg);
9191
}
92+
// NOTE: This is needed to compile the file src/intrinsic/archs.rs during a bootstrap of rustc.
93+
context.add_command_line_option("-fno-var-tracking-assignments");
9294
// NOTE: an optimization (https://github.com/rust-lang/rustc_codegen_gcc/issues/53).
9395
context.add_command_line_option("-fno-semantic-interposition");
9496
// NOTE: Rust relies on LLVM not doing TBAA (https://github.com/rust-lang/unsafe-code-guidelines/issues/292).

0 commit comments

Comments
 (0)