Skip to content

Commit

Permalink
small opt
Browse files Browse the repository at this point in the history
  • Loading branch information
edg-l committed Oct 21, 2024
1 parent dddd958 commit 8aa10f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/block_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ impl<'ctx> BlockExt<'ctx> for Block<'ctx> {
indexes: &[GepIndex<'ctx, '_>],
elem_type: Type<'ctx>,
) -> Result<Value<'ctx, '_>, Error> {
let mut dynamic_indices = Vec::new();
let mut raw_constant_indices = Vec::new();
let mut dynamic_indices = Vec::with_capacity(indexes.len());
let mut raw_constant_indices = Vec::with_capacity(indexes.len());

for index in indexes {
match index {
Expand Down

0 comments on commit 8aa10f1

Please sign in to comment.