Skip to content

Commit

Permalink
Fix perfomance regression
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Dec 20, 2023
1 parent f7e2d82 commit 6f3dfb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl CodegenBackend for GotocCodegenBackend {
let mut items: HashSet<_> = HashSet::with_capacity(harnesses.len());
items.extend(harnesses);
let harnesses = filter_crate_items(tcx, |_, instance| {
items.contains(&instance.name().intern())
items.contains(&instance.mangled_name().intern())
});
for harness in harnesses {
let model_path = queries.harness_model_path(&harness.name()).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion kani-compiler/src/kani_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl KaniCompiler {
let all_harnesses = harnesses
.into_iter()
.map(|harness| {
let def_path = harness.name().intern();
let def_path = harness.mangled_name().intern();
let metadata = gen_proof_metadata(tcx, harness, &base_filename);
let stub_map = harness_stub_map(tcx, harness, &metadata);
(def_path, HarnessInfo { metadata, stub_map })
Expand Down

0 comments on commit 6f3dfb6

Please sign in to comment.