forked from OSchip/llvm-project
parent
eb99bd736a
commit
f39064c2de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue