Speedup debug builds a bit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-23 18:38:52 +00:00
parent ebd7e6c54d
commit 4dc54ae0d9
2 changed files with 6 additions and 4 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

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