projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed4afd1
)
[JITLink][RISCV] Fix incorrectly use of uint32_t
author
luxufan
<luxufan@iscas.ac.cn>
Mon, 2 Jan 2023 05:48:39 +0000
(13:48 +0800)
committer
luxufan
<luxufan@iscas.ac.cn>
Mon, 2 Jan 2023 05:48:39 +0000
(13:48 +0800)
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
b/llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
index
91f0fe0
..
184b97b
100644
(file)
--- a/
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
+++ b/
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
@@
-338,7
+338,7
@@
private:
FixupAddress.getValue())) +
E.getAddend())
.getValue();
- *(little16_t *)FixupPtr = static_cast<uint
32
_t>(Value);
+ *(little16_t *)FixupPtr = static_cast<uint
16
_t>(Value);
break;
}
case R_RISCV_ADD8: {