aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-05-27 21:28:00 +0000
committerDouglas Gregor <dgregor@apple.com>2011-05-27 21:28:00 +0000
commitf61103ef335fb273a98c1389e6fddaf796feb4b3 (patch)
treef0b407548143a8c0192a104a31992ab1b9e0a734 /lib/Sema/SemaDecl.cpp
parent0903421e36c174a82597f83bd296f3cd5b5f169b (diff)
Clean up my changes to jump-diagnostic handling for local variables of
class type (or array thereof), eliminating some redundant checks (thanks Eli!) and adding some tests where the behavior differs in C++98/03 vs. C++0x. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 77bd5b79ae..5a3f6328ca 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -5646,7 +5646,7 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl,
if ((!getLangOptions().CPlusPlus0x && !CXXRecord->isPOD()) ||
(getLangOptions().CPlusPlus0x &&
(!CXXRecord->hasTrivialDefaultConstructor() ||
- (!CXXRecord->hasTrivialDestructor()))))
+ !CXXRecord->hasTrivialDestructor())))
getCurFunction()->setHasBranchProtectedScope();
}
}