[llvm-commits] CVS: llvm/lib/CodeGen/MachineDebugInfo.cpp

Jim Laskey jlaskey at apple.com
Mon Nov 6 05:20:43 PST 2006



Changes in directory llvm/lib/CodeGen:

MachineDebugInfo.cpp updated: 1.53 -> 1.54
---
Log message:

D'oh - reversed logic.

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

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


Index: llvm/lib/CodeGen/MachineDebugInfo.cpp
diff -u llvm/lib/CodeGen/MachineDebugInfo.cpp:1.53 llvm/lib/CodeGen/MachineDebugInfo.cpp:1.54
--- llvm/lib/CodeGen/MachineDebugInfo.cpp:1.53	Tue Oct 24 06:50:43 2006
+++ llvm/lib/CodeGen/MachineDebugInfo.cpp	Mon Nov  6 07:20:29 2006
@@ -1570,7 +1570,7 @@
 bool MachineDebugInfo::isLabelValid(unsigned LabelID) {
   std::vector<unsigned>::iterator I =
     std::lower_bound(DeletedLabelIDs.begin(), DeletedLabelIDs.end(), LabelID);
-  return I != DeletedLabelIDs.end() && *I == LabelID;
+  return I == DeletedLabelIDs.end() || *I != LabelID;
 }
 
 /// RecordSource - Register a source file with debug info. Returns an source






More information about the llvm-commits mailing list