[cfe-dev] Can't use sizeof ( typeof ( <vla> ))
Friedman, Eli via cfe-dev
cfe-dev at lists.llvm.org
Wed Dec 7 13:30:57 PST 2016
On 12/7/2016 1:16 PM, Paulo Matos wrote:
>
> On 05/12/16 19:30, Friedman, Eli wrote:
>> I think you might need to add an overload of
>> TransformToPotentiallyEvaluated: you should be transforming TInfo, not
>> E. (Not 100% sure this matters in practice, but I think you could end
>> up with infinite recursion.)
>>
> Apologies if I misunderstand but you can't easily do that as you can't
> do `TransformToPE(*this).TransformExpr(TInfo);`, you need to first
> convert a TInfo into an Expr and then call it on
> `Sema::TransformToPotentiallyEvaluated` so no overload seems to be
> necessary.
>
You can do "TransformToPE(*this).TransformType(TInfo);"
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
More information about the cfe-dev
mailing list