[cfe-dev] patch to fix Expr::isIntegerConstantExpr() for sizeof

Nuno Lopes nunoplopes at sapo.pt
Sun Dec 16 07:48:36 PST 2007


Hi,

Attached is a patch to fix Expr::isIntegerConstantExpr() for a simple 
"sizeof(int)". This problem is the same as the one I sent before, but it 
seems clang has 2 ways to represent the sizeof operator (as a unary operator 
and as a sizeof operator) and thus the code/bug is duplicated.

Regards,
Nuno 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clang_sizeof_patch.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071216/45c9b630/attachment.txt>


More information about the cfe-dev mailing list