From ecc260e403d09ba04ed87d2d04226ac851c68e5a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 12 Nov 2009 23:13:08 +0000 Subject: [PATCH] Simplify code a bit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87040 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfException.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index bb33b8e41d0..93cc012edce 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; } } }