@@ -748,18 +748,15 @@ getStatepointBundles(std::optional<ArrayRef<T1>> TransitionArgs,
748
748
ArrayRef<T3> GCArgs) {
749
749
std::vector<OperandBundleDef> Rval;
750
750
if (DeoptArgs) {
751
- SmallVector<Value*, 16 > DeoptValues;
752
- llvm::append_range (DeoptValues, *DeoptArgs);
751
+ SmallVector<Value *, 16 > DeoptValues (*DeoptArgs);
753
752
Rval.emplace_back (" deopt" , DeoptValues);
754
753
}
755
754
if (TransitionArgs) {
756
- SmallVector<Value*, 16 > TransitionValues;
757
- llvm::append_range (TransitionValues, *TransitionArgs);
755
+ SmallVector<Value *, 16 > TransitionValues (*TransitionArgs);
758
756
Rval.emplace_back (" gc-transition" , TransitionValues);
759
757
}
760
758
if (GCArgs.size ()) {
761
- SmallVector<Value*, 16 > LiveValues;
762
- llvm::append_range (LiveValues, GCArgs);
759
+ SmallVector<Value *, 16 > LiveValues (GCArgs);
763
760
Rval.emplace_back (" gc-live" , LiveValues);
764
761
}
765
762
return Rval;
@@ -1091,9 +1088,7 @@ CallInst *IRBuilderBase::CreateConstrainedFPCall(
1091
1088
Function *Callee, ArrayRef<Value *> Args, const Twine &Name,
1092
1089
std::optional<RoundingMode> Rounding,
1093
1090
std::optional<fp::ExceptionBehavior> Except) {
1094
- llvm::SmallVector<Value *, 6 > UseArgs;
1095
-
1096
- append_range (UseArgs, Args);
1091
+ llvm::SmallVector<Value *, 6 > UseArgs (Args);
1097
1092
1098
1093
if (Intrinsic::hasConstrainedFPRoundingModeOperand (Callee->getIntrinsicID ()))
1099
1094
UseArgs.push_back (getConstrainedFPRounding (Rounding));
0 commit comments