Due to label merging, the last label for an invoke
authorDuncan Sands <baldrick@free.fr>
Wed, 5 Sep 2007 14:12:46 +0000 (14:12 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 5 Sep 2007 14:12:46 +0000 (14:12 +0000)
may be the same as the first label for the following
invoke.  Remove a micro-optimization which was wrong
in this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41720 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index e9988743a5059671f6e0534bcc8fb1e006c4dc19..073cb4a31a1ff8a043a9c095f8c0314594267da9 100644 (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);