[llvm-commits] [llvm] r105942 - /llvm/trunk/lib/CodeGen/LiveVariables.cpp
Chris Lattner
sabre at nondot.org
Mon Jun 14 11:28:34 PDT 2010
Author: lattner
Date: Mon Jun 14 13:28:34 2010
New Revision: 105942
URL: http://llvm.org/viewvc/llvm-project?rev=105942&view=rev
Log:
fix a -Wbool-conversions warning from clang.
Modified:
llvm/trunk/lib/CodeGen/LiveVariables.cpp
Modified: llvm/trunk/lib/CodeGen/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveVariables.cpp?rev=105942&r1=105941&r2=105942&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveVariables.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveVariables.cpp Mon Jun 14 13:28:34 2010
@@ -286,7 +286,7 @@
MachineInstr *LastDef = PhysRegDef[Reg];
MachineInstr *LastUse = PhysRegUse[Reg];
if (!LastDef && !LastUse)
- return false;
+ return 0;
MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef;
unsigned LastRefOrPartRefDist = DistanceMap[LastRefOrPartRef];
More information about the llvm-commits
mailing list