[PATCH] D153924: [OpenMP] Allow exceptions in target regions when offloading to GPUs

Anton Rydahl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 28 13:34:49 PDT 2023


AntonRydahl marked 2 inline comments as done.
AntonRydahl added inline comments.


================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:869
                                bool IsThrownVarInScope) {
-  // Don't report an error if 'throw' is used in system headers.
-  if (!getLangOpts().CXXExceptions &&
+  const llvm::Triple T = Context.getTargetInfo().getTriple();
+  const bool IsOpenMPGPUTarget =
----------------
jdoerfert wrote:
> 
Good point! They should of course both be aliases. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153924/new/

https://reviews.llvm.org/D153924



More information about the cfe-commits mailing list