================ @@ -12,7 +12,6 @@ int mixed() { x=d; } -// expected-error@+2 {{#pragma omp nothing' cannot be an immediate substatement}} ---------------- dreachem wrote:
As I understand it, the `nothing` directive is not the equivalent of a null statement. It is an "ignore me" directive. With OpenMP support, this: ``` if (x) #pragma omp nothing f(); ``` should be transformed to this (i.e., the nothing directive should simply be ignored): ``` if (x) f(); ``` If we are transforming it into a null statement, that is wrong. https://github.com/llvm/llvm-project/pull/73690 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits