Speedup debug builds a bit

llvm-svn: 15137
This commit is contained in:
Chris Lattner 2004-07-23 18:38:52 +00:00
parent c96d299569
commit 848c7c59d4
1 changed files with 3 additions and 2 deletions

View File

@ -95,8 +95,9 @@ namespace llvm {
virtual bool runOnMachineFunction(MachineFunction&);
LiveInterval& getInterval(unsigned reg) {
assert(r2iMap_.count(reg)&& "Interval does not exist for register");
return *r2iMap_.find(reg)->second;
Reg2IntervalMap::iterator I = r2iMap_.find(reg);
assert(I != r2iMap_.end()&& "Interval does not exist for register");
return *I->second;
}
/// getInstructionIndex - returns the base index of instr