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
2025-05-28 06:41:01 -04:00
2025-06-03 17:59:42 -07:00
2025-03-03 13:28:10 -08:00
2025-03-28 11:34:24 +01:00
2025-06-11 10:35:06 +01:00
2025-01-17 13:41:44 +08:00
2025-06-03 17:59:42 -07:00
2025-01-28 15:51:17 -03:00
2025-01-17 13:41:44 +08:00
2025-03-19 10:51:45 +01:00
2025-06-13 06:45:40 -04:00
2025-02-26 14:32:50 -08:00
2025-03-19 11:43:40 +01:00
2025-04-29 11:22:34 +08:00
2025-01-23 10:22:07 +00:00
2025-06-03 17:59:42 -07:00
2025-02-26 14:32:50 -08:00
2025-05-28 09:15:48 +01:00
2025-03-13 14:20:30 +08:00
2025-06-03 17:59:42 -07:00
2025-04-08 11:02:57 +08:00
2025-05-19 12:11:11 -07:00
2025-01-22 16:24:56 -08:00
2025-01-17 09:35:02 +00:00
2025-06-03 17:59:42 -07:00
2025-06-23 14:39:08 +08:00
2025-04-29 08:38:33 -07:00
2025-03-13 15:04:06 +08:00
2025-03-13 15:04:06 +08:00
2025-05-06 16:40:01 -07:00
2025-06-03 17:59:42 -07:00
2025-02-21 10:04:42 -08:00
2025-04-16 10:14:05 -07:00
2025-03-10 10:32:08 +01:00
2025-06-03 17:59:42 -07:00
2025-07-02 23:58:22 +03:00
2025-06-03 17:59:42 -07:00
2025-03-10 10:32:08 +01:00
2025-05-22 18:34:30 -07:00
2025-03-25 13:24:21 +08:00
2025-06-02 15:59:16 -07:00
2025-05-27 17:43:59 -04:00
2025-06-03 17:59:42 -07:00
2025-06-12 11:48:09 +08:00
2025-06-12 10:48:34 +08:00
2025-01-24 10:51:10 +08:00
2025-01-22 13:39:58 +08:00
2025-01-17 22:17:50 +08:00
2025-01-17 13:41:44 +08:00
2025-06-03 17:59:42 -07:00
2025-03-07 11:02:19 +01:00
2025-07-03 19:03:52 +08:00
2025-06-21 18:58:56 +08:00
2025-04-10 17:13:10 -07:00
2025-05-12 09:10:16 -04:00
2025-03-27 14:04:41 +08:00
2025-06-26 13:39:45 +08:00
2025-02-27 18:51:39 +08:00
2025-04-17 17:09:26 -07:00
2025-06-02 16:42:43 +01:00
2025-06-30 10:19:29 -03:00
2025-01-03 09:43:53 +08:00
2025-02-28 13:50:18 +01:00
2025-05-13 07:46:43 +02:00
2025-05-13 07:46:43 +02:00
2025-05-13 07:46:43 +02:00
2025-01-18 19:16:33 +01:00
2025-06-12 11:48:09 +08:00
2025-06-03 17:59:42 -07:00
2025-01-17 13:41:44 +08:00
2025-06-25 14:12:32 +08:00
2025-06-12 14:42:04 +08:00
2025-02-08 22:29:23 -08:00
2025-03-15 23:03:20 -07:00
2025-02-05 14:13:18 +08:00
2025-03-11 11:36:17 +08:00
2025-02-11 14:12:32 +08:00
2025-02-21 10:48:30 +08:00
2025-03-15 23:03:20 -07:00
2025-05-15 10:50:45 +08:00
2025-06-23 14:39:08 +08:00
2025-05-16 16:29:33 +02:00
2025-06-12 17:46:33 +08:00
2025-06-20 17:03:29 +08:00
2025-06-27 13:35:09 +08:00
2025-06-17 09:45:18 +01:00
2025-01-22 18:17:37 +01:00
2025-01-17 13:41:44 +08:00
2025-01-18 19:16:33 +01:00
2025-04-13 22:29:27 -07:00
2025-06-21 18:58:56 +08:00
2025-06-21 18:58:56 +08:00
2025-06-21 18:58:56 +08:00
2025-06-03 17:59:42 -07:00
2025-04-15 10:17:03 +08:00
2025-05-13 14:00:31 -07:00
2025-05-06 16:40:01 -07:00
2025-06-25 17:51:50 +08:00
2025-03-10 10:32:08 +01:00
2025-03-19 11:19:25 -07:00
2025-03-05 10:32:19 +08:00
2025-04-24 05:36:20 +02:00
2025-06-02 15:59:16 -07:00
2025-07-03 15:37:55 -07:00
2025-07-07 16:01:40 -07:00
2025-06-23 20:20:15 -07:00
2025-01-22 17:24:12 +08:00
2025-01-22 12:30:31 +08:00
2025-04-14 14:17:36 +02:00