[PATCH] AST: Handle elaborated type in getIntWidth
Justin Bogner
mail at justinbogner.com
Wed Oct 9 21:58:35 PDT 2013
In getIntWidth we special case enums and boolean types, but this
handling can be defeated if the type is hidden inside an
ElaboratedType. Notably, scoped enum bools in a namespace that are
referred to by a fully qualified name skip past both checks.
This then causes an assert when something of that type is involved in an
implicit cast.
We can avoid this by explicitly stripping the elaborated type.
Okay to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AST-Handle-elaborated-types-in-getIntWidth.patch
Type: text/x-patch
Size: 1835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131009/2e3729f3/attachment.bin>
More information about the cfe-commits
mailing list