[clang] [clang] Remove an incorrect assertion in ConstantFoldAttrs (PR #105789)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 11:15:08 PDT 2024


Sirraide wrote:

> I guess it might make sense to create the `ConstantExpr` in any case, even for a `None` `APValue`?

The comment above `ConstantFoldAttrArgs` seems to suggest that that’s what’s supposed to happen if the expression isn’t dependent—I don’t know if there’s any code that depends on that, though.

https://github.com/llvm/llvm-project/pull/105789


More information about the cfe-commits mailing list