diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-12-08 01:00:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-12-08 01:00:21 +0000 |
commit | 5a759616b63a1e5dca76a2170ad0ba6410a11504 (patch) | |
tree | a79f0db9f906e157310d6bf73f12a768d529550f | |
parent | e5839f878855b2e0cd0e1288530933ac3137ad1b (diff) | |
download | external_llvm-5a759616b63a1e5dca76a2170ad0ba6410a11504.zip external_llvm-5a759616b63a1e5dca76a2170ad0ba6410a11504.tar.gz external_llvm-5a759616b63a1e5dca76a2170ad0ba6410a11504.tar.bz2 |
Fix a compilation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44691 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 634681c..f93c2ce 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -615,7 +615,7 @@ MachineInstr *PPCRegisterInfo::foldMemoryOperand(MachineInstr *MI, bool PPCRegisterInfo::canFoldMemoryOperand(MachineInstr *MI, SmallVectorImpl<unsigned> &Ops) const { - if (Ops.size() != 1) return NULL; + if (Ops.size() != 1) return false; // Make sure this is a reg-reg copy. Note that we can't handle MCRF, because // it takes more than one instruction to store it. |