summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-02-22 23:52:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-02-22 23:52:23 +0000
commit7d35c0e2b987a631019feb746ea577346abb1fee (patch)
tree7b05289093627ba1099fd1ccfd753925c27df3a6 /include/llvm/CodeGen/LiveIntervalAnalysis.h
parentc740d062903c568a32b6e614a4bcd949413b05ed (diff)
downloadllvm-7d35c0e2b987a631019feb746ea577346abb1fee.tar.gz
llvm-7d35c0e2b987a631019feb746ea577346abb1fee.tar.bz2
llvm-7d35c0e2b987a631019feb746ea577346abb1fee.tar.xz
Copy and paste silliness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r--include/llvm/CodeGen/LiveIntervalAnalysis.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h
index dc72807e71..451905f088 100644
--- a/include/llvm/CodeGen/LiveIntervalAnalysis.h
+++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h
@@ -175,8 +175,7 @@ namespace llvm {
/// isRemoved - returns true if the specified machine instr has been
/// removed.
bool isRemoved(MachineInstr* instr) const {
- Mi2IndexMap::const_iterator it = mi2iMap_.find(instr);
- return it == mi2iMap_.end();
+ return !mi2iMap_.count(instr);
}
/// RemoveMachineInstrFromMaps - This marks the specified machine instr as