[all-commits] [llvm/llvm-project] 85b2e9: [Clang][OpenMP] Emit unsupported directive error (...
Raymond Chang via All-commits
all-commits at lists.llvm.org
Fri Nov 24 13:28:57 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85b2e9c02295a54100d41207cddce5908b8c513f
https://github.com/llvm/llvm-project/commit/85b2e9c02295a54100d41207cddce5908b8c513f
Author: Raymond Chang <raymondkenchang at gmail.com>
Date: 2023-11-24 (Fri, 24 Nov 2023)
Changed paths:
M clang/lib/CodeGen/CGStmt.cpp
A clang/test/OpenMP/dispatch_unsupported.c
Log Message:
-----------
[Clang][OpenMP] Emit unsupported directive error (#70233)
Hello!
This PR fixes #63871. Clang should no longer crash and instead emits an
error message.
Below is an example of the new error message:
```
~/dev/fork-llvm-project omp_dispatch_unimpl
❯ ./install/bin/clang -fopenmp -c -emit-llvm -Xclang -disable-llvm-passes test.c
test.c:6:5: error: cannot compile this OpenMP dispatch directive yet
6 | #pragma omp dispatch
| ^~~~~~~~~~~~~~~~~~~~
1 error generated.
```
More information about the All-commits
mailing list