File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class MachineModuleInfo;
30
30
// / Represents the location at which a variable is stored.
31
31
struct DbgVariableLocation {
32
32
// / Base register.
33
- unsigned Register;
33
+ MCRegister Register;
34
34
35
35
// / Chain of offsetted loads necessary to load the value if it lives in
36
36
// / memory. Every load except for the last is pointer-sized.
Original file line number Diff line number Diff line change @@ -1361,7 +1361,7 @@ void CodeViewDebug::calculateRanges(
1361
1361
}
1362
1362
1363
1363
// We can only handle a register or an offseted load of a register.
1364
- if (Location->Register == 0 || Location->LoadChain .size () > 1 )
1364
+ if (! Location->Register || Location->LoadChain .size () > 1 )
1365
1365
continue ;
1366
1366
1367
1367
// Codeview can only express byte-aligned offsets, ensure that we have a
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ DbgVariableLocation::extractFromMachineInstruction(
39
39
return std::nullopt;
40
40
if (!Instruction.getDebugOperand (0 ).isReg ())
41
41
return std::nullopt;
42
- Location.Register = Instruction.getDebugOperand (0 ).getReg ();
42
+ Location.Register = Instruction.getDebugOperand (0 ).getReg (). asMCReg () ;
43
43
Location.FragmentInfo .reset ();
44
44
// We only handle expressions generated by DIExpression::appendOffset,
45
45
// which doesn't require a full stack machine.
You can’t perform that action at this time.
0 commit comments