diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-11-06 13:20:29 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-11-06 13:20:29 +0000 |
commit | f39064c2de3dd9f842bbb58f29f9ae31b13c8492 (patch) | |
tree | d7a0b9a70640ba56694b82f99adbeb691a48a7c0 | |
parent | Add comment. (diff) | |
download | llvm-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.cpp | 2 |
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 |