[all-commits] [llvm/llvm-project] 701add: [clang][Sema] Fix PR47676: Handle dependent AltiVe...
Hubert Tong via All-commits
all-commits at lists.llvm.org
Mon Nov 2 20:50:36 PST 2020
Branch: refs/heads/release/11.x
Home: https://github.com/llvm/llvm-project
Commit: 701addff1b713ee13d85daa0e3f7a0504d84b1af
https://github.com/llvm/llvm-project/commit/701addff1b713ee13d85daa0e3f7a0504d84b1af
Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
Date: 2020-11-02 (Mon, 02 Nov 2020)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
A clang/test/SemaTemplate/pr47676.cpp
Log Message:
-----------
[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
(cherry picked from commit 35ecc7fe49ba881a77e8146b51870a60a52b211f)
More information about the All-commits
mailing list