Fix arm build fail with clang11 (#53511)
authorDong-Heon Jung <clamp03@gmail.com>
Tue, 1 Jun 2021 05:24:37 +0000 (14:24 +0900)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 05:24:37 +0000 (22:24 -0700)
fix ```error: cast to smaller integer type 'unsigned int' from 'void *'```

src/coreclr/vm/arm/cgencpu.h

index c68e763..4f6e1de 100644 (file)
@@ -294,7 +294,7 @@ inline void emitJump(LPBYTE pBuffer, LPVOID target)
 
     // ldr pc, [pc, #0]
     pCode[0] = 0xf000f8df;
-    pCode[1] = (DWORD)target;
+    pCode[1] = (DWORD)(size_t)target;
 }
 
 //------------------------------------------------------------------------