[cfe-commits] r171817 - /cfe/trunk/lib/Sema/SemaType.cpp

Douglas Gregor dgregor at apple.com
Mon Jan 7 16:01:45 PST 2013


Author: dgregor
Date: Mon Jan  7 18:01:45 2013
New Revision: 171817

URL: http://llvm.org/viewvc/llvm-project?rev=171817&view=rev
Log:
Back out my no-op change from r171783.

Modified:
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=171817&r1=171816&r2=171817&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Mon Jan  7 18:01:45 2013
@@ -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();





More information about the cfe-commits mailing list