File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5914,6 +5914,9 @@ bool Compiler<Emitter>::VisitVectorUnaryOperator(const UnaryOperator *E) {
5914
5914
return this ->discard (SubExpr);
5915
5915
5916
5916
auto UnaryOp = E->getOpcode ();
5917
+ if (UnaryOp == UO_Extension)
5918
+ return this ->delegate (SubExpr);
5919
+
5917
5920
if (UnaryOp != UO_Plus && UnaryOp != UO_Minus && UnaryOp != UO_LNot &&
5918
5921
UnaryOp != UO_Not && UnaryOp != UO_AddrOf)
5919
5922
return this ->emitInvalid (E);
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ static_assert(arr4[1][0] == 0, "");
37
37
static_assert (arr4[1 ][0 ] == 0 , " " );
38
38
static_assert (arr4[1 ][0 ] == 0 , " " );
39
39
40
+ constexpr VI4 B = __extension__(A);
40
41
41
42
// / From constant-expression-cxx11.cpp
42
43
namespace Vector {
You can’t perform that action at this time.
0 commit comments