Skip to content

Commit e5b84f3

Browse files
Remove SmallVec
1 parent 0d61104 commit e5b84f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/rustc_codegen_llvm/src/builder.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use rustc_span::Span;
2424
use rustc_symbol_mangling::typeid::{kcfi_typeid_for_fnabi, typeid_for_fnabi, TypeIdOptions};
2525
use rustc_target::abi::{self, call::FnAbi, Align, Size, WrappingRange};
2626
use rustc_target::spec::{HasTargetSpec, SanitizerSet, Target};
27-
use smallvec::SmallVec;
2827
use std::borrow::Cow;
2928
use std::ffi::CStr;
3029
use std::iter;
@@ -1231,12 +1230,10 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
12311230
}
12321231

12331232
fn apply_attrs_to_cleanup_callsite(&mut self, llret: &'ll Value) {
1234-
let mut attrs = SmallVec::<[_; 2]>::new();
1235-
12361233
// Cleanup is always the cold path.
1237-
attrs.push(llvm::AttributeKind::Cold.create_attr(self.llcx));
1234+
let cold_inline = llvm::AttributeKind::Cold.create_attr(self.llcx);
12381235

1239-
attributes::apply_to_callsite(llret, llvm::AttributePlace::Function, &attrs);
1236+
attributes::apply_to_callsite(llret, llvm::AttributePlace::Function, &[cold_inline]);
12401237
}
12411238
}
12421239

0 commit comments

Comments
 (0)