Skip to content

Commit a0130ea

Browse files
Addressing review comments
1 parent c56a94b commit a0130ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static std::vector<MCInst> loadIntReg(const MCSubtargetInfo &STI, unsigned Reg,
9191
MCRegister DestReg = Reg;
9292

9393
RISCVMatInt::generateMCInstSeq(Value.getSExtValue(), STI, DestReg, MCInstSeq);
94+
MatIntInstrs.resize(MCInstSeq.size());
9495
std::copy(MCInstSeq.begin(), MCInstSeq.end(), MatIntInstrs.begin());
9596

9697
return MatIntInstrs;

0 commit comments

Comments
 (0)