From c411abad4f4bb4ad0b468e031272b146fadcfda6 Mon Sep 17 00:00:00 2001 From: Fred Chow Date: Wed, 4 Aug 2021 17:22:52 -0700 Subject: [PATCH] fix bug found in building 625.x264; retype instruction does not provide opndType field --- src/mapleall/maple_me/src/irmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapleall/maple_me/src/irmap.cpp b/src/mapleall/maple_me/src/irmap.cpp index 3bc4f1812d..6ccd87b8e9 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; } -- Gitee