Skip to content

Commit 46df454

Browse files
[CodeGen] Construct SmallVector with ArrayRef (NFC) (#109566)
1 parent b47af5d commit 46df454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/EarlyIfConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ class PredicatorStrategy : public SSAIfConv::PredicationStrategyBase {
11171117

11181118
void predicateBlock(MachineBasicBlock *MBB, ArrayRef<MachineOperand> Cond,
11191119
bool Reverse) override {
1120-
SmallVector<MachineOperand> Condition(Cond.begin(), Cond.end());
1120+
SmallVector<MachineOperand> Condition(Cond);
11211121
if (Reverse) {
11221122
bool CanRevCond = !TII->reverseBranchCondition(Condition);
11231123
assert(CanRevCond && "Reversed predicate is not supported");

0 commit comments

Comments
 (0)