Back out my no-op change from r171783.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171817 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index ad70468..1bdd7c3 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -1269,12 +1269,6 @@
S.LangOpts.GNUMode).isInvalid();
}
-/// \brief Determine whether the given type is a POD or standard-layout type,
-/// as appropriate for the C++ language options.
-static bool isPODType(QualType T, ASTContext &Context) {
- return Context.getLangOpts().CPlusPlus11? T.isCXX11PODType(Context)
- : T.isCXX98PODType(Context);
-}
/// \brief Build an array type.
///
@@ -1448,8 +1442,8 @@
// Prohibit the use of non-POD types in VLAs.
QualType BaseT = Context.getBaseElementType(T);
if (!T->isDependentType() &&
- !BaseT->isObjCLifetimeType() &&
- !isPODType(BaseT, Context)) {
+ !BaseT.isPODType(Context) &&
+ !BaseT->isObjCLifetimeType()) {
Diag(Loc, diag::err_vla_non_pod)
<< BaseT;
return QualType();