aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorHenrik G. Olsson <hnrklssn@gmail.com>2025-07-07 16:01:40 -0700
committerGitHub <noreply@github.com>2025-07-07 16:01:40 -0700
commitc8850051c2414b899416e16222f5d96e854be563 (patch)
tree748637850a74f452321daad9e2578c423f9b40af /clang/lib/Basic/SourceManager.cpp
parent468275dc491e88d68def668f1a23cde9ba952e5e (diff)
downloadllvm-c8850051c2414b899416e16222f5d96e854be563.zip
llvm-c8850051c2414b899416e16222f5d96e854be563.tar.gz
llvm-c8850051c2414b899416e16222f5d96e854be563.tar.bz2
[Modules] Don't const eval VarDecls with dependent type (#147378)
EvaluateAsInitializer does not support evaluating values with dependent types. This was previously guarded with a check for the initializer expression, but it is possible for the VarDecl to have a dependent type without the initializer having a dependent type, when the initializer is a specialized template type and the VarDecl has the unspecialized type. This adds a guard checking for dependence in the VarDecl type as well. This fixes the issue raised by Google in https://github.com/llvm/llvm-project/pull/145447
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions