diff options
author | Duncan Sands <baldrick@free.fr> | 2007-09-05 14:12:46 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-09-05 14:12:46 +0000 |
commit | 988650438440e5aedbcf13adf8bc2ae4fda3bd4f (patch) | |
tree | 06d146aaed2a8191fa409e6bbefba299b99fa1cd /lib/CodeGen/DwarfWriter.cpp | |
parent | e9685143f49303f9b2591ef8cb751d7e2407a42b (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index e9988743a5..073cb4a31a 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/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); |