D'oh - reversed logic.

llvm-svn: 31474
This commit is contained in:
Jim Laskey 2006-11-06 13:20:29 +00:00
parent eb99bd736a
commit f39064c2de
1 changed files with 1 additions and 1 deletions

View File

@ -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