Skip to content

Commit c1690d0

Browse files
committed
[MIR] Fix vreg flag vector memory leak
SmallVector allocates on stack so that works out here.
1 parent f364804 commit c1690d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/MIRParser/MIParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct VRegInfo {
4545
} D;
4646
Register VReg;
4747
Register PreferredReg;
48-
std::vector<uint8_t> Flags;
48+
SmallVector<uint8_t> Flags;
4949
};
5050

5151
using Name2RegClassMap = StringMap<const TargetRegisterClass *>;

0 commit comments

Comments
 (0)