[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun May 14 11:47:04 PDT 2006



Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.197 -> 1.198
---
Log message:

inverted logic, caught by coverity


---
Diffs of the changes:  (+1 -1)

 AsmWriter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.197 llvm/lib/VMCore/AsmWriter.cpp:1.198
--- llvm/lib/VMCore/AsmWriter.cpp:1.197	Fri Apr  7 20:18:18 2006
+++ llvm/lib/VMCore/AsmWriter.cpp	Sun May 14 13:46:52 2006
@@ -582,7 +582,7 @@
         Slot = Machine->getSlot(V);
       } else {
         Machine = createSlotMachine(V);
-        if (Machine == 0)
+        if (Machine)
           Slot = Machine->getSlot(V);
         else
           Slot = -1;






More information about the llvm-commits mailing list