[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-20 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu updated https://github.com/llvm/llvm-project/pull/158146 >From 1d2f9ac071d436e6be4d693833a3b630e4a7fc15 Mon Sep 17 00:00:00 2001 From: Krish Gupta Date: Wed, 10 Sep 2025 03:41:06 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Add lowering test: lastprivate on DO is scoped

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-10-18 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu closed https://github.com/llvm/llvm-project/pull/158146 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-14 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu updated https://github.com/llvm/llvm-project/pull/158146 >From 1d2f9ac071d436e6be4d693833a3b630e4a7fc15 Mon Sep 17 00:00:00 2001 From: Krish Gupta Date: Wed, 10 Sep 2025 03:41:06 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Add lowering test: lastprivate on DO is scoped

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-12 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu created https://github.com/llvm/llvm-project/pull/158146 Reproducer without (forged `omp_allocator_handle_t`) crashed in SemaOpenMP (null deref while classifying the allocator). Fix: - Null-guard predefined allocator lookup in getAllocatorKind. - Keep user-defined as

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-12 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu updated https://github.com/llvm/llvm-project/pull/158146 >From 1d2f9ac071d436e6be4d693833a3b630e4a7fc15 Mon Sep 17 00:00:00 2001 From: Krish Gupta Date: Wed, 10 Sep 2025 03:41:06 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Add lowering test: lastprivate on DO is scoped

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-12 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu updated https://github.com/llvm/llvm-project/pull/158146 >From 1d2f9ac071d436e6be4d693833a3b630e4a7fc15 Mon Sep 17 00:00:00 2001 From: Krish Gupta Date: Wed, 10 Sep 2025 03:41:06 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Add lowering test: lastprivate on DO is scoped

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-13 Thread Krish Gupta via cfe-commits
KrxGu wrote: @shafik reverted the comments, brought back `k`, have tested and built again everything working fine. https://github.com/llvm/llvm-project/pull/158146 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-13 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu updated https://github.com/llvm/llvm-project/pull/158146 >From 1d2f9ac071d436e6be4d693833a3b630e4a7fc15 Mon Sep 17 00:00:00 2001 From: Krish Gupta Date: Wed, 10 Sep 2025 03:41:06 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Add lowering test: lastprivate on DO is scoped