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:  j...@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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to