diff options
author | Lang Hames <lhames@gmail.com> | 2023-08-04 10:16:25 -0700 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2023-11-27 08:30:03 +0100 |
commit | 7e30ce9528d91a6ab274a4cda27325d5d476a127 (patch) | |
tree | badb5a4d00c0b561407edcc29bd17b09e2cc5fb0 | |
parent | [CMake] Support building shared library for NetBSD (diff) | |
download | llvm-project-7e30ce9528d91a6ab274a4cda27325d5d476a127.tar.gz llvm-project-7e30ce9528d91a6ab274a4cda27325d5d476a127.tar.bz2 llvm-project-7e30ce9528d91a6ab274a4cda27325d5d476a127.zip |
[JITLink][aarch32] Change writeRegister's return type to void.
This function does not return a value.
https://github.com/llvm/llvm-project/issues/64418
(cherry picked from commit dce179396e7e547fe6b42f0f9625b49212e6ec0b)
-rw-r--r-- | llvm/lib/ExecutionEngine/JITLink/aarch32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/aarch32.cpp b/llvm/lib/ExecutionEngine/JITLink/aarch32.cpp index ffc3950cdec8..83829dde0508 100644 --- a/llvm/lib/ExecutionEngine/JITLink/aarch32.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/aarch32.cpp @@ -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"); |