Skip to content

Commit b6bc683

Browse files
author
git apple-llvm automerger
committed
Merge commit 'da4ac13acac1' from llvm.org/main into next
2 parents e2bf574 + da4ac13 commit b6bc683

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ namespace {
3232
static std::vector<MCInst> loadIntReg(const MCSubtargetInfo &STI, unsigned Reg,
3333
const APInt &Value) {
3434
SmallVector<MCInst, 8> MCInstSeq;
35-
std::vector<MCInst> MatIntInstrs;
3635
MCRegister DestReg = Reg;
3736

3837
RISCVMatInt::generateMCInstSeq(Value.getSExtValue(), STI, DestReg, MCInstSeq);
39-
MatIntInstrs.resize(MCInstSeq.size());
40-
std::copy(MCInstSeq.begin(), MCInstSeq.end(), MatIntInstrs.begin());
4138

39+
std::vector<MCInst> MatIntInstrs(MCInstSeq.begin(), MCInstSeq.end());
4240
return MatIntInstrs;
4341
}
4442

0 commit comments

Comments
 (0)