Henrik G. Olsson c8850051c2
[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
2025-07-07 16:01:40 -07:00
..
2025-05-28 06:41:01 -04:00
2025-05-07 14:47:24 +08:00