]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge commit 35ecc7fe4 from llvm git (by Hubert Tong):
authordim <dim@FreeBSD.org>
Tue, 13 Oct 2020 19:42:22 +0000 (19:42 +0000)
committerdim <dim@FreeBSD.org>
Tue, 13 Oct 2020 19:42:22 +0000 (19:42 +0000)
commit302374442d3dd4892476cd78a9d3af115d9bea24
tree22058ea2012b3d8f6b5718dd800ced4cb2706f71
parente7f4befd094df44e680a9837129f7cb99b40473d
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
MFC after: 4 weeks
X-MFC-With: r364284
contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp