Index: src/GenPoly/Box.cc
===================================================================
--- src/GenPoly/Box.cc	(revision a5f0529a63fd135c870940242904abe5132d58e6)
+++ src/GenPoly/Box.cc	(revision 2edd80ae7bb41eee0783cfcc80573f533b6ee760)
@@ -1750,5 +1750,5 @@
 
 		Expression *PolyGenericCalculator::mutate( SizeofExpr *sizeofExpr ) {
-			Type *ty = sizeofExpr->get_type();
+			Type *ty = sizeofExpr->get_isType() ? sizeofExpr->get_type() : sizeofExpr->get_expr()->get_result();
 			if ( findGeneric( ty ) ) {
 				Expression *ret = new NameExpr( sizeofName( mangleType( ty ) ) );
@@ -1760,5 +1760,5 @@
 
 		Expression *PolyGenericCalculator::mutate( AlignofExpr *alignofExpr ) {
-			Type *ty = alignofExpr->get_type();
+			Type *ty = alignofExpr->get_isType() ? alignofExpr->get_type() : alignofExpr->get_expr()->get_result();
 			if ( findGeneric( ty ) ) {
 				Expression *ret = new NameExpr( alignofName( mangleType( ty ) ) );
