diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp index 70360705a696..04c83d06b228 100644 --- a/llvm/lib/Target/ARM/ARMRegisterInfo.cpp +++ b/llvm/lib/Target/ARM/ARMRegisterInfo.cpp @@ -429,7 +429,7 @@ MachineInstr *ARMRegisterInfo::foldMemoryOperand(MachineInstr *MI, bool ARMRegisterInfo::canFoldMemoryOperand(MachineInstr *MI, SmallVectorImpl &Ops) const { - if (Ops.size() != 1) return NULL; + if (Ops.size() != 1) return 0; unsigned OpNum = Ops[0]; unsigned Opc = MI->getOpcode();