Skip to content

Commit 39fa5b3

Browse files
authored
[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
1 parent eb4fde9 commit 39fa5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase {
7070

7171
/// Register containing the data or the register base of the memory
7272
/// location containing the data.
73-
uint16_t CVRegister;
73+
uint32_t CVRegister : 16;
7474

7575
uint64_t static toOpaqueValue(const LocalVarDef DR) {
7676
uint64_t Val = 0;

0 commit comments

Comments
 (0)