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 | 0fc88efda38a4260ba11820655c687e04ec468a3 (patch) | |
tree | 1d6dc4f76a729beb87798a2d622b5c58f5607a27 /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | e42d72309b2a315344ea75b5b6666a666d54375f (diff) | |
download | bcm5719-llvm-0fc88efda38a4260ba11820655c687e04ec468a3.tar.gz bcm5719-llvm-0fc88efda38a4260ba11820655c687e04ec468a3.zip |
fix a -Wbool-conversions warning from clang.
llvm-svn: 105942
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index fe6b290ea9f..41b891d30f2 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/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]; |