diff options
author | Raymond Chang <raymondkenchang@gmail.com> | 2023-11-24 16:28:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 16:28:32 -0500 |
commit | 85b2e9c02295a54100d41207cddce5908b8c513f (patch) | |
tree | 72b933e5742d7f6660eb218b5d1722856e76c28c /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | b86420c614b57342e752ff40359e09c85b940475 (diff) | |
download | llvm-85b2e9c02295a54100d41207cddce5908b8c513f.zip llvm-85b2e9c02295a54100d41207cddce5908b8c513f.tar.gz llvm-85b2e9c02295a54100d41207cddce5908b8c513f.tar.bz2 |
[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.
```
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions