Skip to content

Commit 4189c60

Browse files
Address a comment.
1 parent 280c4bd commit 4189c60

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

llvm/lib/IR/IRBuilder.cpp

+7-12
Original file line numberDiff line numberDiff line change
@@ -747,18 +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(*DeoptArgs);
752-
Rval.emplace_back("deopt", DeoptValues);
753-
}
754-
if (TransitionArgs) {
755-
SmallVector<Value *, 16> TransitionValues(*TransitionArgs);
756-
Rval.emplace_back("gc-transition", TransitionValues);
757-
}
758-
if (GCArgs.size()) {
759-
SmallVector<Value *, 16> LiveValues(GCArgs);
760-
Rval.emplace_back("gc-live", LiveValues);
761-
}
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));
762757
return Rval;
763758
}
764759

0 commit comments

Comments
 (0)