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:
a0fcc3e
)
inverted logic, caught by coverity
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:46:52 +0000
(18:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 May 2006 18:46:52 +0000
(18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28290
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index f21bd8485a4c00f57c93d3286d60f8899561bbe1..abbb8a865c6183fbb915f164897794c51b8c92f0 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-582,7
+582,7
@@
static void WriteAsOperandInternal(std::ostream &Out, const Value *V,
Slot = Machine->getSlot(V);
} else {
Machine = createSlotMachine(V);
- if (Machine
== 0
)
+ if (Machine)
Slot = Machine->getSlot(V);
else
Slot = -1;