diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-14 18:46:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-14 18:46:52 +0000 |
commit | 96749c4cecdaf17190eb90f1619276762b4817db (patch) | |
tree | 5354b9cd20d62fc6bdbb646f151422b482bd975f | |
parent | 35515557c7615e1188fd853064828badd720a3ff (diff) | |
download | bcm5719-llvm-96749c4cecdaf17190eb90f1619276762b4817db.tar.gz bcm5719-llvm-96749c4cecdaf17190eb90f1619276762b4817db.zip |
inverted logic, caught by coverity
llvm-svn: 28290
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index f21bd8485a4..abbb8a865c6 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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; |