[clang] [clang][OpenMP] Emit host diagnostics that were deferred and never flushed (PR #220316)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 11 06:46:52 PDT 2026
================
@@ -17375,8 +17375,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation,
DiscardCleanupsInEvaluationContext();
}
- if (FD && (LangOpts.isTargetDevice() || LangOpts.CUDA ||
- (LangOpts.OpenMP && !LangOpts.OMPTargetTriples.empty()))) {
+ if (FD && (LangOpts.isTargetDevice() || LangOpts.CUDA || LangOpts.OpenMP)) {
----------------
pgerell wrote:
Done. Plain `-fopenmp-simd` now skips the `nohost` call checks again, as before this patch, so I dropped those expectations from that RUN line in declare_target_messages.cpp.
https://github.com/llvm/llvm-project/pull/220316
More information about the cfe-commits
mailing list