From: Chris Lattner Date: Sun, 14 May 2006 18:46:52 +0000 (+0000) Subject: inverted logic, caught by coverity X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5b5cc5f2a1aa9741fe81052a6a2d5dcf1d5bd533;p=oota-llvm.git inverted logic, caught by coverity git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28290 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index f21bd8485a4..abbb8a865c6 100644 --- 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;