From 5b5cc5f2a1aa9741fe81052a6a2d5dcf1d5bd533 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 May 2006 18:46:52 +0000 Subject: [PATCH] inverted logic, caught by coverity git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28290 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;