[llvm] 39fa5b3 - [llvm][NFC] Update LocalVarDef::CVRegister to fix size MS ABI (#140214)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 16 00:47:57 PDT 2025


Author: Oliver Hunt
Date: 2025-05-16T00:47:52-07:00
New Revision: 39fa5b31c5e603ef96f5130913c86c821b2f0620

URL: https://github.com/llvm/llvm-project/commit/39fa5b31c5e603ef96f5130913c86c821b2f0620
DIFF: https://github.com/llvm/llvm-project/commit/39fa5b31c5e603ef96f5130913c86c821b2f0620.diff

LOG: [llvm][NFC] Update LocalVarDef::CVRegister to fix size MS ABI (#140214)

LocalVarDef::CVRegister being a uint16_t is not enough for the fields to
be packed with the MS ABI.

This makes the field a 16 bit a uint32_t

Added: 
    

Modified: 
    llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
index be6eb4c8998bd..d13b315135ad9 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
@@ -70,7 +70,7 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase {
 
     /// Register containing the data or the register base of the memory
     /// location containing the data.
-    uint16_t CVRegister;
+    uint32_t CVRegister : 16;
 
     uint64_t static toOpaqueValue(const LocalVarDef DR) {
       uint64_t Val = 0;


        


More information about the llvm-commits mailing list