diff options
Diffstat (limited to 'llvm/lib/Target/ARC/ARCOptAddrMode.cpp')
-rw-r--r-- | llvm/lib/Target/ARC/ARCOptAddrMode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARC/ARCOptAddrMode.cpp b/llvm/lib/Target/ARC/ARCOptAddrMode.cpp index 22a3b9111c8e..232a7be2a9f5 100644 --- a/llvm/lib/Target/ARC/ARCOptAddrMode.cpp +++ b/llvm/lib/Target/ARC/ARCOptAddrMode.cpp @@ -22,6 +22,7 @@ #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/IR/Function.h" +#include "llvm/InitializePasses.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" @@ -185,7 +186,7 @@ bool ARCOptAddrMode::noUseOfAddBeforeLoadOrStore(const MachineInstr *Add, } MachineInstr *ARCOptAddrMode::tryToCombine(MachineInstr &Ldst) { - assert((Ldst.mayLoad() || Ldst.mayStore()) && "LD/ST instruction expected"); + assert(Ldst.mayLoadOrStore() && "LD/ST instruction expected"); unsigned BasePos, OffsetPos; |