[cfe-dev] [PATCH] Flexible array initializers may be strings
Pierre Habouzit
madcoder at madism.org
Sat Sep 25 01:46:54 PDT 2010
> - if (!hadError && !isa<InitListExpr>(DIE->getInit())) {
> + if (!hadError && !isa<InitListExpr>(DIE->getInit()) && !isa<StringLiteral>(DIE->getInit())) {
I noticed after that that there is an IsStringInit function, so I tried
the patch with
!IsStringInit(DIE->getInit(), DIE->getType, SemaRef.Context)
which handles more cases, but for some reason it doesn't work on my
use case anymore, and I've not been able to understand why.
--
·O· Pierre Habouzit
··O madcoder at debian.org
OOO http://www.madism.org
More information about the cfe-dev
mailing list