[cfe-commits] [PATCH] Sema: have BuildExpressionFromIntegralTemplateArgument produce well-formed IntegerLiterals
Peter Collingbourne
peter at pcc.me.uk
Thu Nov 25 22:12:25 PST 2010
Hi,
BuildExpressionFromIntegralTemplateArgument can produce malformed
IntegerLiterals with an EnumType if the template parameter type
is an EnumType. This breaks the AST printer which expects all
IntegerLiterals to have a plain integer type. Instead, give the
IntegerLiteral the enum's promotion type and wrap in an implicit cast
to the EnumType.
OK to commit?
Thanks,
--
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sema-have-BuildExpressionFromIntegralTemplateArgumen.patch
Type: text/x-diff
Size: 2008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101126/5a6baed9/attachment.patch>
More information about the cfe-commits
mailing list