save-analysis: don't recompute crate name

This commit is contained in:
Nick Cameron 2015-10-20 08:54:19 +13:00
parent 7aec91734e
commit 401c80dab1
9 changed files with 24 additions and 27 deletions

View file

@ -229,7 +229,7 @@ fn compile_program(input: &str, sysroot: PathBuf)
let ast_map = driver::make_map(&sess, &mut hir_forest);
driver::phase_3_run_analysis_passes(
&sess, ast_map, &arenas, id, MakeGlobMap::No, |tcx, analysis| {
&sess, ast_map, &arenas, &id, MakeGlobMap::No, |tcx, analysis| {
let trans = driver::phase_4_translate_to_llvm(tcx, analysis);