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:
11046ef
)
[ORC] Remove a spurious reinterpret_cast.
author
Lang Hames
<lhames@gmail.com>
Mon, 13 Jul 2020 19:37:18 +0000
(12:37 -0700)
committer
Lang Hames
<lhames@gmail.com>
Mon, 13 Jul 2020 19:39:24 +0000
(12:39 -0700)
llvm/lib/ExecutionEngine/Orc/OrcABISupport.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ExecutionEngine/Orc/OrcABISupport.cpp
b/llvm/lib/ExecutionEngine/Orc/OrcABISupport.cpp
index
5f89d91
..
18b3c5e
100644
(file)
--- a/
llvm/lib/ExecutionEngine/Orc/OrcABISupport.cpp
+++ b/
llvm/lib/ExecutionEngine/Orc/OrcABISupport.cpp
@@
-461,9
+461,7
@@
void OrcI386::writeTrampolines(char *TrampolineWorkingMem,
assert((ResolverAddr >> 32) == 0 && "ResolverAddr out of range");
uint64_t CallRelImm = 0xF1C4C400000000e8;
- uint64_t ResolverRel =
- ResolverAddr - reinterpret_cast<uint64_t>(TrampolineBlockTargetAddress) -
- 5;
+ uint64_t ResolverRel = ResolverAddr - TrampolineBlockTargetAddress - 5;
uint64_t *Trampolines = reinterpret_cast<uint64_t *>(TrampolineWorkingMem);
for (unsigned I = 0; I < NumTrampolines; ++I, ResolverRel -= TrampolineSize)