Files
clang-p2996/clang/lib/AST/ExprConstant.cpp
Charles Magahern 3ac4299d37 [clang] Don't short-circuit constant evaluation for array or record types
FastEvaluateAsRValue returns `true` without setting a result value for when a
given constant expression is an array or record type.

Clang attributes must be able to support constant expressions that are array or
record types, so proceed with the slower path for evaluation in the case where
`FastEvaluateAsRValue` does not yield an evaluation result.

Differential Revision: https://reviews.llvm.org/D141745
2023-01-19 18:04:00 -08:00

583 KiB