@@ -747,21 +747,13 @@ getStatepointBundles(std::optional<ArrayRef<T1>> TransitionArgs,
747747 std::optional<ArrayRef<T2>> DeoptArgs,
748748 ArrayRef<T3> GCArgs) {
749749 std::vector<OperandBundleDef> Rval;
750- if (DeoptArgs) {
751- SmallVector<Value*, 16 > DeoptValues;
752- llvm::append_range (DeoptValues, *DeoptArgs);
753- Rval.emplace_back (" deopt" , DeoptValues);
754- }
755- if (TransitionArgs) {
756- SmallVector<Value*, 16 > TransitionValues;
757- llvm::append_range (TransitionValues, *TransitionArgs);
758- Rval.emplace_back (" gc-transition" , TransitionValues);
759- }
760- if (GCArgs.size ()) {
761- SmallVector<Value*, 16 > LiveValues;
762- llvm::append_range (LiveValues, GCArgs);
763- Rval.emplace_back (" gc-live" , LiveValues);
764- }
750+ if (DeoptArgs)
751+ Rval.emplace_back (" deopt" , SmallVector<Value *, 16 >(*DeoptArgs));
752+ if (TransitionArgs)
753+ Rval.emplace_back (" gc-transition" ,
754+ SmallVector<Value *, 16 >(*TransitionArgs));
755+ if (GCArgs.size ())
756+ Rval.emplace_back (" gc-live" , SmallVector<Value *, 16 >(GCArgs));
765757 return Rval;
766758}
767759
@@ -1091,9 +1083,7 @@ CallInst *IRBuilderBase::CreateConstrainedFPCall(
10911083 Function *Callee, ArrayRef<Value *> Args, const Twine &Name,
10921084 std::optional<RoundingMode> Rounding,
10931085 std::optional<fp::ExceptionBehavior> Except) {
1094- llvm::SmallVector<Value *, 6 > UseArgs;
1095-
1096- append_range (UseArgs, Args);
1086+ llvm::SmallVector<Value *, 6 > UseArgs (Args);
10971087
10981088 if (Intrinsic::hasConstrainedFPRoundingModeOperand (Callee->getIntrinsicID ()))
10991089 UseArgs.push_back (getConstrainedFPRounding (Rounding));
0 commit comments