diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-14 18:28:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-14 18:28:34 +0000 |
commit | 98cdfc779df1d8d9a0071103af13f43ba65504c2 (patch) | |
tree | 0fea4464598f4e9150e9c342cfbdacc2cd6467da /lib/CodeGen/LiveVariables.cpp | |
parent | bf1075cbe764b7b1ee514d755757c6e4784f994d (diff) |
fix a -Wbool-conversions warning from clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index fe6b290ea9..41b891d30f 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -286,7 +286,7 @@ MachineInstr *LiveVariables::FindLastRefOrPartRef(unsigned Reg) { MachineInstr *LastDef = PhysRegDef[Reg]; MachineInstr *LastUse = PhysRegUse[Reg]; if (!LastDef && !LastUse) - return false; + return 0; MachineInstr *LastRefOrPartRef = LastUse ? LastUse : LastDef; unsigned LastRefOrPartRefDist = DistanceMap[LastRefOrPartRef]; |