Skip to content

Commit ad6b597

Browse files
committed
[ORC] Fix EPCGenericMemoryAccessTest write-ptrs implementation after f93df5e
The write-pointers operation should be writing a pointer, not a uint64_t. This bug existed prior to f93df5e, but changes in that commit seem to have exposed the issue (see e.g. https://lab.llvm.org/buildbot/#/builders/154/builds/17956).
1 parent 9a0a976 commit ad6b597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/ExecutionEngine/Orc/EPCGenericMemoryAccessTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CWrapperFunctionResult testWritePointers(const char *ArgData, size_t ArgSize) {
3434
handle(ArgData, ArgSize,
3535
[](std::vector<tpctypes::PointerWrite> Ws) {
3636
for (auto &W : Ws)
37-
*W.Addr.template toPtr<uint64_t *>() = W.Value.getValue();
37+
*W.Addr.template toPtr<void **>() = W.Value.toPtr<void *>();
3838
})
3939
.release();
4040
}

0 commit comments

Comments
 (0)