Skip to content

Commit 4855d76

Browse files
authored
Apply suggestions from code review
1 parent 4def06b commit 4855d76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/coreclr/nativeaot/Runtime/unix/UnwindHelpers.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -779,13 +779,13 @@ void Registers_REGDISPLAY::setRegister(int num, uint64_t value, uint64_t locatio
779779

780780
double Registers_REGDISPLAY::getFloatRegister(int num) const
781781
{
782-
assert(validFloatRegister(regNum));
782+
assert(validFloatRegister(num));
783783
return unwindhelpers_bitcast<double>(D[num - UNW_ARM64_D8]);
784784
}
785785

786786
void Registers_REGDISPLAY::setFloatRegister(int num, double value)
787787
{
788-
assert(validFloatRegister(regNum));
788+
assert(validFloatRegister(num));
789789
D[num - UNW_ARM64_D8] = unwindhelpers_bitcast<uint64_t>(value);
790790
}
791791

@@ -1040,13 +1040,13 @@ void Registers_REGDISPLAY::setRegister(int num, uint64_t value, uint64_t locatio
10401040

10411041
double Registers_REGDISPLAY::getFloatRegister(int num) const
10421042
{
1043-
assert(validFloatRegister(regNum));
1043+
assert(validFloatRegister(num));
10441044
return unwindhelpers_bitcast<double>(F[num - UNW_LOONGARCH_F24]);
10451045
}
10461046

10471047
void Registers_REGDISPLAY::setFloatRegister(int num, double value)
10481048
{
1049-
assert(validFloatRegister(regNum));
1049+
assert(validFloatRegister(num));
10501050
F[num - UNW_LOONGARCH_F24] = unwindhelpers_bitcast<uint64_t>(value);
10511051
}
10521052

@@ -1067,8 +1067,8 @@ struct Registers_REGDISPLAY : REGDISPLAY
10671067
uint64_t getRegister(int num) const;
10681068
void setRegister(int num, uint64_t value, uint64_t location);
10691069

1070-
double getFloatRegister(int num) const { abort(); }
1071-
void setFloatRegister(int num, double value) { abort(); }
1070+
double getFloatRegister(int num) const;
1071+
void setFloatRegister(int num, double value);
10721072

10731073
libunwind::v128 getVectorRegister(int num) const { abort(); }
10741074
void setVectorRegister(int num, libunwind::v128 value) { abort(); }

0 commit comments

Comments
 (0)