aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-08 01:00:31 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-08 01:00:31 +0000
commit7658445fa64d2e044e84e98e19a3cbec8023f186 (patch)
tree6231baa821fa3b0e2091ab0d9821db8b69327070 /lib/Target/ARM
parent5a759616b63a1e5dca76a2170ad0ba6410a11504 (diff)
downloadexternal_llvm-7658445fa64d2e044e84e98e19a3cbec8023f186.zip
external_llvm-7658445fa64d2e044e84e98e19a3cbec8023f186.tar.gz
external_llvm-7658445fa64d2e044e84e98e19a3cbec8023f186.tar.bz2
Fix a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/ARMRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMRegisterInfo.cpp b/lib/Target/ARM/ARMRegisterInfo.cpp
index 7036070..04c83d0 100644
--- a/lib/Target/ARM/ARMRegisterInfo.cpp
+++ b/lib/Target/ARM/ARMRegisterInfo.cpp
@@ -429,7 +429,7 @@ MachineInstr *ARMRegisterInfo::foldMemoryOperand(MachineInstr *MI,
bool ARMRegisterInfo::canFoldMemoryOperand(MachineInstr *MI,
SmallVectorImpl<unsigned> &Ops) const {
- if (Ops.size() != 1) return NULL;
+ if (Ops.size() != 1) return 0;
unsigned OpNum = Ops[0];
unsigned Opc = MI->getOpcode();