diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-11-12 23:13:08 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-11-12 23:13:08 +0000 |
commit | ecc260e403d09ba04ed87d2d04226ac851c68e5a (patch) | |
tree | d742fb349cbb3bea01c5dd803c7c84aa9f749a55 /lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | ed060dcb5c7e9cb2fd11ff3b0b98203fb53063e7 (diff) |
Simplify code a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index bb33b8e41d..93cc012edc 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -485,10 +485,9 @@ bool DwarfException::CallToNoUnwindFunction(const MachineInstr *MI) { MarkedNoUnwind = false; break; } - if (F->doesNotThrow()) { - SawFunc = true; - MarkedNoUnwind = true; - } + + MarkedNoUnwind = F->doesNotThrow(); + SawFunc = true; } } } |