Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 19:02:49 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r330080 - in stable: 10/contrib/llvm/tools/clang/lib/Sema 9/contrib/llvm/tools/clang/lib/Sema
Message-ID:  <201802271902.w1RJ2n3X047279@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Feb 27 19:02:49 2018
New Revision: 330080
URL: https://svnweb.freebsd.org/changeset/base/330080

Log:
  Avoid using the C++11 auto keyword, which was introduced in r328555, as
  part of an upstream change.  This is not supported by gcc 4.2.1, which
  is still the default system compiler for some architectures.
  
  Direct commit to stable/9 and stable/10, since this does not apply to
  stable/11 and head.
  
  Reported by:	jau@iki.fi
  PR:		202665,226068

Modified:
  stable/9/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp

Changes in other areas also in this revision:
Modified:
  stable/10/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp

Modified: stable/9/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp
==============================================================================
--- stable/9/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp	Tue Feb 27 17:51:58 2018	(r330079)
+++ stable/9/contrib/llvm/tools/clang/lib/Sema/SemaInit.cpp	Tue Feb 27 19:02:49 2018	(r330080)
@@ -6316,7 +6316,7 @@ static void diagnoseListInit(Sema &S, const Initialize
     QualType T = DestType->getAs<ReferenceType>()->getPointeeType();
     diagnoseListInit(S, InitializedEntity::InitializeTemporary(T), InitList);
     SourceLocation Loc = InitList->getLocStart();
-    if (auto *D = Entity.getDecl())
+    if (DeclaratorDecl *D = Entity.getDecl())
       Loc = D->getLocation();
     S.Diag(Loc, diag::note_in_reference_temporary_list_initializer) << T;
     return;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802271902.w1RJ2n3X047279>