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) {
59145914 return this ->discard (SubExpr);
59155915
59165916 auto UnaryOp = E->getOpcode ();
5917+ if (UnaryOp == UO_Extension)
5918+ return this ->delegate (SubExpr);
5919+
59175920 if (UnaryOp != UO_Plus && UnaryOp != UO_Minus && UnaryOp != UO_LNot &&
59185921 UnaryOp != UO_Not && UnaryOp != UO_AddrOf)
59195922 return this ->emitInvalid (E);
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ static_assert(arr4[1][0] == 0, "");
3737static_assert (arr4[1 ][0 ] == 0 , " " );
3838static_assert (arr4[1 ][0 ] == 0 , " " );
3939
40+ constexpr VI4 B = __extension__(A);
4041
4142// / From constant-expression-cxx11.cpp
4243namespace Vector {
You can’t perform that action at this time.
0 commit comments