diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-08 00:01:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-08 00:01:45 +0000 |
commit | 21444b96c84f91afc8a4c1b50b5f0c43002ab3dc (patch) | |
tree | 3b4dad56c69d83bd8ec5eca8333311e5fb50a9c5 /clang/lib/Sema | |
parent | c1b2ccfd34aeded84655af6962dab3428183d6bd (diff) | |
download | bcm5719-llvm-21444b96c84f91afc8a4c1b50b5f0c43002ab3dc.tar.gz bcm5719-llvm-21444b96c84f91afc8a4c1b50b5f0c43002ab3dc.zip |
Back out my no-op change from r171783.
llvm-svn: 171817
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaType.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index ad704685e58..1bdd7c3b398 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -1269,12 +1269,6 @@ static bool isArraySizeVLA(Sema &S, Expr *ArraySize, llvm::APSInt &SizeVal) { 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 @@ QualType Sema::BuildArrayType(QualType T, ArrayType::ArraySizeModifier ASM, // 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(); |