Skip to content

Commit

Permalink
[JITLink][aarch32] Change writeRegister's return type to void.
Browse files Browse the repository at this point in the history
This function does not return a value.

llvm/llvm-project#64418
(cherry picked from commit dce1793)
  • Loading branch information
lhames authored and tru committed Nov 27, 2023
1 parent 03373fd commit 7e30ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/JITLink/aarch32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ bool checkRegister(const ThumbRelocation &R, HalfWords Reg) {
}

template <EdgeKind_aarch32 Kind>
bool writeRegister(WritableThumbRelocation &R, HalfWords Reg) {
void writeRegister(WritableThumbRelocation &R, HalfWords Reg) {
static constexpr HalfWords Mask = FixupInfo<Kind>::RegMask;
assert((Mask.Hi & Reg.Hi) == Reg.Hi && (Mask.Hi & Reg.Hi) == Reg.Hi &&
"Value bits exceed bit range of given mask");
Expand Down

0 comments on commit 7e30ce9

Please sign in to comment.