[llvm] 03807aa - [AMDGPU][MC] Attempt to fix build after e83e53b702714

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 7 02:39:24 PDT 2024


Author: Nico Weber
Date: 2024-07-07T11:39:15+02:00
New Revision: 03807aa2c5d924a2e88fad1cacda2470c5052f1c

URL: https://github.com/llvm/llvm-project/commit/03807aa2c5d924a2e88fad1cacda2470c5052f1c
DIFF: https://github.com/llvm/llvm-project/commit/03807aa2c5d924a2e88fad1cacda2470c5052f1c.diff

LOG: [AMDGPU][MC] Attempt to fix build after e83e53b702714

See https://github.com/llvm/llvm-project/pull/96461#issuecomment-2212381515

Added: 
    

Modified: 
    llvm/unittests/MC/AMDGPU/Disassembler.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/MC/AMDGPU/Disassembler.cpp b/llvm/unittests/MC/AMDGPU/Disassembler.cpp
index 3f841f87c4ea0d..23413030136ab5 100644
--- a/llvm/unittests/MC/AMDGPU/Disassembler.cpp
+++ b/llvm/unittests/MC/AMDGPU/Disassembler.cpp
@@ -98,7 +98,7 @@ TEST(AMDGPUDisassembler, MultiDisassembler) {
   char StrBuffer[128];
 
   uint8_t Bytes[] = {0x04, 0x00, 0x80, 0xb0};
-  size_t InstSize = 0U;
+  uint64_t InstSize = 0U;
   MCInst Inst1, Inst2;
   MCDisassembler::DecodeStatus Status;
 
@@ -184,7 +184,7 @@ TEST(AMDGPUDisassembler, UCVersionOverride) {
   uint8_t Versions[] = {UC_VERSION_GFX10_DEFAULT, UC_VERSION_GFX10_NEW};
   for (uint8_t Version : Versions) {
     uint8_t Bytes[] = {Version, 0x00, 0x80, 0xb0};
-    size_t InstSize = 0U;
+    uint64_t InstSize = 0U;
     MCInst Inst;
 
     AnnoStr.clear();


        


More information about the llvm-commits mailing list