summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-11-06 13:20:29 +0000
committerJim Laskey <jlaskey@mac.com>2006-11-06 13:20:29 +0000
commitf39064c2de3dd9f842bbb58f29f9ae31b13c8492 (patch)
treed7a0b9a70640ba56694b82f99adbeb691a48a7c0
parentAdd comment. (diff)
downloadllvm-project-f39064c2de3dd9f842bbb58f29f9ae31b13c8492.tar.gz
llvm-project-f39064c2de3dd9f842bbb58f29f9ae31b13c8492.tar.bz2
llvm-project-f39064c2de3dd9f842bbb58f29f9ae31b13c8492.zip
D'oh - reversed logic.
llvm-svn: 31474
-rw-r--r--llvm/lib/CodeGen/MachineDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineDebugInfo.cpp b/llvm/lib/CodeGen/MachineDebugInfo.cpp
index b895cd7727a5..490e48d92625 100644
--- a/llvm/lib/CodeGen/MachineDebugInfo.cpp
+++ b/llvm/lib/CodeGen/MachineDebugInfo.cpp
@@ -1570,7 +1570,7 @@ void MachineDebugInfo::InvalidateLabel(unsigned LabelID) {
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