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 | 1b6f579571a05f65629239ba72725b0876937d91 (patch) | |
tree | 0fea4464598f4e9150e9c342cfbdacc2cd6467da /lib/CodeGen/LiveVariables.cpp | |
parent | f532953a91c3d1934441cb25b0a978a6a8ad1fda (diff) | |
download | external_llvm-1b6f579571a05f65629239ba72725b0876937d91.zip external_llvm-1b6f579571a05f65629239ba72725b0876937d91.tar.gz external_llvm-1b6f579571a05f65629239ba72725b0876937d91.tar.bz2 |
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 fe6b290..41b891d 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]; |