[all-commits] [llvm/llvm-project] f65b35: [OpenACC] Stop trying to analyze invalid Var-Decls.
Erich Keane via All-commits
all-commits at lists.llvm.org
Wed May 21 10:31:44 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f65b35d89f21b19935da6e1e2e062780b88e64df
https://github.com/llvm/llvm-project/commit/f65b35d89f21b19935da6e1e2e062780b88e64df
Author: erichkeane <ekeane at nvidia.com>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M clang/lib/Sema/SemaOpenACC.cpp
A clang/test/SemaOpenACC/gh140920.cpp
Log Message:
-----------
[OpenACC] Stop trying to analyze invalid Var-Decls.
The code to analyze VarDecls for the purpose of ensuring a magic-static
isn't present in a 'routine' was getting confused/crashed because we
create something that looks like a magic-static during error-recovery,
but it is still an invalid decl.
This patch causes us to just 'give up' in the case where the vardecl is
already invalid.
Fixes: #140920
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list