Skip to content

Commit 370663b

Browse files
committed
Fix
1 parent 4a6ba3f commit 370663b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,19 @@ private DefType GetWellKnownType(WellKnownType wellKnownType)
13861386
return _compilation.TypeSystemContext.GetWellKnownType(wellKnownType);
13871387
}
13881388

1389+
private static void ImportConvert(WellKnownType wellKnownType, bool checkOverflow, bool unsigned)
1390+
{
1391+
if (checkOverflow)
1392+
{
1393+
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.Dbl2IntOvf), "_dbl2intovf");
1394+
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.Dbl2UIntOvf), "_dbl2uintovf");
1395+
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.Dbl2LngOvf), "_dbl2lngovf");
1396+
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.Dbl2ULngOvf), "_dbl2ulngovf");
1397+
1398+
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1399+
}
1400+
}
1401+
13891402
private static void ImportNop() { }
13901403
private static void ImportBreak() { }
13911404
private static void ImportLoadVar(int index, bool argument) { }
@@ -1403,7 +1416,6 @@ private static void ImportStoreIndirect(int token) { }
14031416
private static void ImportStoreIndirect(TypeDesc type) { }
14041417
private static void ImportShiftOperation(ILOpcode opcode) { }
14051418
private static void ImportCompareOperation(ILOpcode opcode) { }
1406-
private static void ImportConvert(WellKnownType wellKnownType, bool checkOverflow, bool unsigned) { }
14071419
private static void ImportUnaryOperation(ILOpcode opCode) { }
14081420
private static void ImportCpOpj(int token) { }
14091421
private static void ImportCkFinite() { }

0 commit comments

Comments
 (0)