aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-11-12 23:13:08 +0000
committerBill Wendling <isanbard@gmail.com>2009-11-12 23:13:08 +0000
commitecc260e403d09ba04ed87d2d04226ac851c68e5a (patch)
treed742fb349cbb3bea01c5dd803c7c84aa9f749a55 /lib/CodeGen/AsmPrinter/DwarfException.cpp
parented060dcb5c7e9cb2fd11ff3b0b98203fb53063e7 (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.cpp7
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;
}
}
}