diff --git a/src/mapleall/maple_me/src/irmap.cpp b/src/mapleall/maple_me/src/irmap.cpp index 3bc4f1812de45fa8abe32ce32af407612c5bdd2f..6ccd87b8e9a36f5b869707a2dbc4567925cd3a8f 100644 --- a/src/mapleall/maple_me/src/irmap.cpp +++ b/src/mapleall/maple_me/src/irmap.cpp @@ -198,7 +198,7 @@ static void ComputeCastInfoForExpr(const MeExpr &expr, CastInfo &castInfo) { break; } case OP_retype: { - srcType = static_cast(expr).GetOpndType(); + srcType = expr.GetPrimType(); castKind = CAST_retype; break; }