Clean up a C++0x/C++03 conditional check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132229 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/JumpDiagnostics.cpp b/lib/Sema/JumpDiagnostics.cpp
index c1bcbef..ae154aa 100644
--- a/lib/Sema/JumpDiagnostics.cpp
+++ b/lib/Sema/JumpDiagnostics.cpp
@@ -152,11 +152,10 @@
= dyn_cast<CXXConstructExpr>(Init))
if (const CXXConstructorDecl *Constructor
= Construct->getConstructor())
- if (Constructor->isDefaultConstructor() &&
- ((Context.getLangOptions().CPlusPlus0x &&
- Record->hasTrivialDefaultConstructor()) ||
- (!Context.getLangOptions().CPlusPlus0x &&
- Record->isPOD())))
+ if ((Context.getLangOptions().CPlusPlus0x
+ ? Record->hasTrivialDefaultConstructor()
+ : Record->isPOD()) &&
+ Constructor->isDefaultConstructor())
CallsTrivialConstructor = true;
}