aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFG.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-02-20 00:20:27 +0000
committerAnders Carlsson <andersca@mac.com>2011-02-20 00:20:27 +0000
commitc1cfdf8647a499b6b3024f4bd14a236cddb23988 (patch)
tree07b87aed1f31e66a219553c3ed564299e3ae7c8f /lib/Analysis/CFG.cpp
parentda4b7cf09ebfd4e4098b516081fa9dae2f5c99e0 (diff)
Add a LangOptions::areExceptionsEnabled and start using it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFG.cpp')
-rw-r--r--lib/Analysis/CFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp
index 1ae5d40f4d..a0ec5febbe 100644
--- a/lib/Analysis/CFG.cpp
+++ b/lib/Analysis/CFG.cpp
@@ -1089,7 +1089,7 @@ CFGBlock *CFGBuilder::VisitCallExpr(CallExpr *C, AddStmtChoice asc) {
bool AddEHEdge = false;
// Languages without exceptions are assumed to not throw.
- if (Context->getLangOptions().Exceptions) {
+ if (Context->getLangOptions().areExceptionsEnabled()) {
if (BuildOpts.AddEHEdges)
AddEHEdge = true;
}