HomePhabricator

isEvaluatable() implies a constant context.

Description

isEvaluatable() implies a constant context.

Assume that we're in a constant context if we're asking if the expression can
be compiled into a constant initializer. This fixes the issue where a
__builtin_constant_p() in a compound literal was diagnosed as not being
constant, even though it's always possible to convert the builtin into a
constant.

Details

Committed
voidNov 24 2018, 2:45 AM
Parents
rL347511: Revert unapproved commit
Branches
Unknown
Tags
Unknown