Skip to content

Commit bb537d0

Browse files
authored
Fix IL interpreter build on GCC. (#44049)
1 parent 22c3105 commit bb537d0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/coreclr/src/vm/interpreter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3537,6 +3537,7 @@ bool Interpreter::MethodMayHaveLoop(BYTE* ilCode, unsigned codeSize)
35373537
op = *(ilCode + 1) + 0x100;
35383538
_ASSERTE(op < CEE_COUNT); // Bounds check for below.
35393539
// deliberate fall-through here.
3540+
__fallthrough;
35403541
default:
35413542
// For the rest of the 1-byte instructions, we'll use a table-driven approach.
35423543
ilCode += opSizes1Byte[op];
@@ -4919,7 +4920,7 @@ void Interpreter::BinaryIntOpWork(T val1, T val2)
49194920
{
49204921
ThrowDivideByZero();
49214922
}
4922-
else if (val2 == -1 && val1 == static_cast<T>(((UINT64)1) << (sizeof(T)*8 - 1))) // min int / -1 is not representable.
4923+
else if (val2 == static_cast<T>(-1) && val1 == static_cast<T>(((UINT64)1) << (sizeof(T)*8 - 1))) // min int / -1 is not representable.
49234924
{
49244925
ThrowSysArithException();
49254926
}

src/coreclr/src/vm/interpreter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ class Interpreter
10381038
static MethodHandleToInterpMethInfoPtrMap* GetMethodHandleToInterpMethInfoPtrMap();
10391039

10401040
static InterpreterMethodInfo* RecordInterpreterMethodInfoForMethodHandle(CORINFO_METHOD_HANDLE md, InterpreterMethodInfo* methInfo);
1041-
static InterpreterMethodInfo* Interpreter::MethodHandleToInterpreterMethInfoPtr(CORINFO_METHOD_HANDLE md);
1041+
static InterpreterMethodInfo* MethodHandleToInterpreterMethInfoPtr(CORINFO_METHOD_HANDLE md);
10421042

10431043
public:
10441044
static unsigned s_interpreterStubNum;

0 commit comments

Comments
 (0)