Index: src/GenPoly/Box.cc
===================================================================
--- src/GenPoly/Box.cc	(revision 6b0b624129f6017f7706b516a24a52e382e3a334)
+++ src/GenPoly/Box.cc	(revision 6165ce75b8748abdcc4357e09563a89f48852750)
@@ -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 ) ) );
