Skip to content

Commit 21aa9b2

Browse files
committed
Pre-allocate local_map
1 parent af01664 commit 21aa9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub(crate) fn trans_fn<'clif, 'tcx, B: Backend + 'static>(
4747

4848
bcx,
4949
block_map,
50-
local_map: FxHashMap::default(),
50+
local_map: FxHashMap::with_capacity_and_hasher(mir.local_decls.len(), Default::default()),
5151
caller_location: None, // set by `codegen_fn_prelude`
5252
cold_blocks: EntitySet::new(),
5353

0 commit comments

Comments
 (0)