[llvm-commits] [llvm] r41720 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Duncan Sands
baldrick at free.fr
Wed Sep 5 07:12:46 PDT 2007
Author: baldrick
Date: Wed Sep 5 09:12:46 2007
New Revision: 41720
URL: http://llvm.org/viewvc/llvm-project?rev=41720&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=41720&r1=41719&r2=41720&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Wed Sep 5 09:12:46 2007
@@ -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);
More information about the llvm-commits
mailing list