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/Target/SystemZ | |
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/Target/SystemZ')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrBuilder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrBuilder.h b/llvm/lib/Target/SystemZ/SystemZInstrBuilder.h index 5a1c874dfa3..2cb8aba1b32 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrBuilder.h +++ b/llvm/lib/Target/SystemZ/SystemZInstrBuilder.h @@ -29,7 +29,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI) { MachineFunction &MF = *MI->getParent()->getParent(); MachineFrameInfo *MFFrame = MF.getFrameInfo(); const MCInstrDesc &MCID = MI->getDesc(); - unsigned Flags = 0; + auto Flags = MachineMemOperand::MONone; if (MCID.mayLoad()) Flags |= MachineMemOperand::MOLoad; if (MCID.mayStore()) |