Due to label merging, the last label for an invoke

may be the same as the first label for the following
invoke.  Remove a micro-optimization which was wrong
in this case.

llvm-svn: 41720
This commit is contained in:
Duncan Sands 2007-09-05 14:12:46 +00:00
parent 6820abe101
commit 2c0a0fb725
1 changed files with 2 additions and 3 deletions

View File

@ -3098,10 +3098,9 @@ private:
unsigned BeginLabel = MI->getOperand(0).getImmedValue();
assert(BeginLabel && "Invalid label!");
if (BeginLabel == LastLabel) {
if (BeginLabel == LastLabel)
MayThrow = false;
continue;
}
RangeMapType::iterator L = PadMap.find(BeginLabel);