projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1075c
)
fix a -Wbool-conversions warning from clang.
author
Chris Lattner
<sabre@nondot.org>
Mon, 14 Jun 2010 18:28:34 +0000
(18:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 14 Jun 2010 18:28:34 +0000
(18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105942
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveVariables.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveVariables.cpp
b/lib/CodeGen/LiveVariables.cpp
index fe6b290ea9f25a89f65ab179ba869fedad324580..41b891d30f23b3ca0aaaf4acaa90f53d1d260dbe 100644
(file)
--- 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];