Undo unnecessary change

This commit is contained in:
bjorn3 2018-06-16 16:46:03 +02:00
parent edd6ed571f
commit f44ec6439b

View File

@ -93,6 +93,8 @@ use syntax::ast;
use mir::operand::OperandValue; use mir::operand::OperandValue;
use rustc_codegen_utils::check_for_rustc_errors_attr;
pub struct StatRecorder<'a, 'tcx: 'a> { pub struct StatRecorder<'a, 'tcx: 'a> {
cx: &'a CodegenCx<'a, 'tcx>, cx: &'a CodegenCx<'a, 'tcx>,
name: Option<String>, name: Option<String>,
@ -714,7 +716,7 @@ pub fn codegen_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
rx: mpsc::Receiver<Box<Any + Send>>) rx: mpsc::Receiver<Box<Any + Send>>)
-> OngoingCodegen { -> OngoingCodegen {
::rustc_codegen_utils::check_for_rustc_errors_attr(tcx); check_for_rustc_errors_attr(tcx);
if let Some(true) = tcx.sess.opts.debugging_opts.thinlto { if let Some(true) = tcx.sess.opts.debugging_opts.thinlto {
if unsafe { !llvm::LLVMRustThinLTOAvailable() } { if unsafe { !llvm::LLVMRustThinLTOAvailable() } {