From 5a759616b63a1e5dca76a2170ad0ba6410a11504 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 8 Dec 2007 01:00:21 +0000 Subject: [PATCH] Fix a compilation warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44691 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCRegisterInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 634681cdb4e..f93c2ce9e0b 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 &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.