[llvm-commits] [llvm] r44691 - /llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Dec 7 17:00:21 PST 2007
Author: evancheng
Date: Fri Dec 7 19:00:21 2007
New Revision: 44691
URL: http://llvm.org/viewvc/llvm-project?rev=44691&view=rev
Log:
Fix a compilation warning.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp?rev=44691&r1=44690&r2=44691&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCRegisterInfo.cpp Fri Dec 7 19:00:21 2007
@@ -615,7 +615,7 @@
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.
More information about the llvm-commits
mailing list