inverted logic, caught by coverity
authorChris Lattner <sabre@nondot.org>
Sun, 14 May 2006 18:46:52 +0000 (18:46 +0000)
committerChris 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

index f21bd8485a4c00f57c93d3286d60f8899561bbe1..abbb8a865c6183fbb915f164897794c51b8c92f0 100644 (file)
@@ -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;