[clang] Fix for codegen Crash in Clang when using locator omp_all_memory with depobj construct (PR #114221)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 03:58:37 PST 2024


================
@@ -36,6 +36,8 @@ int main(int argc, char **argv) {
 #pragma omp depobj(b) update(mutexinoutset)
 #pragma omp depobj(a) depend(iterator(char *p = argv[argc]:argv[0]:-1), out: p[0])
   (void)tmain(a), tmain(b);
+   omp_depend_t obj;
+#pragma omp depobj(obj) depend(inout: omp_all_memory)
----------------
alexey-bataev wrote:

Add actual checks here

https://github.com/llvm/llvm-project/pull/114221


More information about the cfe-commits mailing list