Skip to content

Commit 162d027

Browse files
amstrnadarunthomas
authored andcommitted
Flags was still a uint16 in a couple places
1 parent 5c5c9fd commit 162d027

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/include/llvm/CodeGen/MachineInstr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ class MachineInstr
332332
Flags |= (MachineInstrFlags_t)Flag;
333333
}
334334

335-
void setFlags(unsigned flags) {
335+
void setFlags(MachineInstrFlags_t flags) {
336336
// Filter out the automatically maintained flags.
337-
unsigned Mask = BundledPred | BundledSucc;
337+
MachineInstrFlags_t Mask = BundledPred | BundledSucc;
338338
Flags = (Flags & Mask) | (flags & ~Mask);
339339
}
340340

@@ -1648,7 +1648,7 @@ class MachineInstr
16481648
/// not modify the MIFlags of this MachineInstr.
16491649
MachineInstrFlags_t mergeFlagsWith(const MachineInstr& Other) const;
16501650

1651-
static uint16_t copyFlagsFromInstruction(const Instruction &I);
1651+
static MachineInstrFlags_t copyFlagsFromInstruction(const Instruction &I);
16521652

16531653
/// Copy all flags to MachineInst MIFlags
16541654
void copyIRFlags(const Instruction &I);

llvm/lib/CodeGen/MachineInstr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ MachineInstrFlags_t MachineInstr::mergeFlagsWith(const MachineInstr &Other) cons
523523
return getFlags() | Other.getFlags();
524524
}
525525

526-
uint16_t MachineInstr::copyFlagsFromInstruction(const Instruction &I) {
527-
uint16_t MIFlags = 0;
526+
MachineInstrFlags_t MachineInstr::copyFlagsFromInstruction(const Instruction &I) {
527+
MachineInstrFlags_t MIFlags = 0;
528528
// Copy the wrapping flags.
529529
if (const OverflowingBinaryOperator *OB =
530530
dyn_cast<OverflowingBinaryOperator>(&I)) {

0 commit comments

Comments
 (0)