]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r366683:
authorDimitry Andric <dim@FreeBSD.org>
Wed, 11 Nov 2020 22:15:25 +0000 (22:15 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 11 Nov 2020 22:15:25 +0000 (22:15 +0000)
commit79904e592ef1303511f66d3ee2874645fa4f6d85
treec37b51006a3a8a114c951065f090a893b6b152ff
parentcbc0b9f095847d36f53a4247a26c31e729b80e43
MFC r366683:

Merge commit 35ecc7fe4 from llvm git (by Hubert Tong):

  [clang][Sema] Fix PR47676: Handle dependent AltiVec C-style cast

  Fix premature decision in the presence of type-dependent expression
  operands on whether AltiVec vector initializations from single
  expressions are "splat" operations.

  Verify that the instantiation is able to determine the correct cast
  semantics for both the scalar type and the vector type case.

  Note that, because the change only affects the single-expression case
  (and the target type is an AltiVec-style vector type), the
  replacement of a parenthesized list with a parenthesized expression
  does not change the semantics of the program in a program-observable
  manner.

  Reviewed By: aaron.ballman

  Differential Revision: https://reviews.llvm.org/D88526

This should fix 'Assertion failed: (isScalarType()), function
getScalarTypeKind, file /usr/src/contrib/llvm-project/clang/lib/AST
/Type.cpp, line 2146', when building the graphics/opencv-core port for
powerpc64le.

Requested by: pkubaj
contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp