diff options
| author | Justin Lebar <jlebar@google.com> | 2016-07-15 18:26:59 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-07-15 18:26:59 +0000 |
| commit | 0af80cd6f0b0ae4770f76f9af3442651dd06fcc2 (patch) | |
| tree | 76c285314e346c185a3a3a54f3532040285bdcf2 /llvm/lib/CodeGen/TargetInstrInfo.cpp | |
| parent | d798c05526af3e746d3e0b5ab99ebfa62d55d803 (diff) | |
| download | bcm5719-llvm-0af80cd6f0b0ae4770f76f9af3442651dd06fcc2.tar.gz bcm5719-llvm-0af80cd6f0b0ae4770f76f9af3442651dd06fcc2.zip | |
[CodeGen] Take a MachineMemOperand::Flags in MachineFunction::getMachineMemOperand.
Summary:
Previously we took an unsigned.
Hooray for type-safety.
Reviewers: chandlerc
Subscribers: dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D22282
llvm-svn: 275591
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfo.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TargetInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp index 467f8730867..e7330c60ed2 100644 --- a/llvm/lib/CodeGen/TargetInstrInfo.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp @@ -497,7 +497,7 @@ static MachineInstr *foldPatchpoint(MachineFunction &MF, MachineInstr &MI, MachineInstr *TargetInstrInfo::foldMemoryOperand(MachineInstr &MI, ArrayRef<unsigned> Ops, int FI, LiveIntervals *LIS) const { - unsigned Flags = 0; + auto Flags = MachineMemOperand::MONone; for (unsigned i = 0, e = Ops.size(); i != e; ++i) if (MI.getOperand(Ops[i]).isDef()) Flags |= MachineMemOperand::MOStore; |

