summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-09-05 14:12:46 +0000
committerDuncan Sands <baldrick@free.fr>2007-09-05 14:12:46 +0000
commit2c0a0fb7259f8b497d1b29342de9803ef2b0bb16 (patch)
tree370cb36152810068d1ef1ddf548dfb195ac56192 /llvm/lib/CodeGen/DwarfWriter.cpp
parent6820abe1012f14adbd224f6787357fb12c575e1c (diff)
downloadbcm5719-llvm-2c0a0fb7259f8b497d1b29342de9803ef2b0bb16.tar.gz
bcm5719-llvm-2c0a0fb7259f8b497d1b29342de9803ef2b0bb16.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index e9988743a50..073cb4a31a1 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -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);
OpenPOWER on IntegriCloud