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
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index e998874..073cb4a 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -3098,10 +3098,9 @@
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);