1 # llvm-17.0.1.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:2187:51: error: cannot convert 'llvm::Align' to 'uintptr_t' {aka 'long unsigned int'} in initialization
2 # 2187 | uintptr_t StubAlignment = getStubAlignment();
6 #llvm-17.0.1.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:2187:19: warning: unused variable 'StubAlignment' [-Wunused-variable]
7 # 2187 | uintptr_t StubAlignment = getStubAlignment();
8 # it seems that StubAlignment is not used at all so just remove
10 --- llvm-17.0.1.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp 2023-09-22 19:43:07.710542014 +0200
11 +++ llvm-17.0.1.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp.new 2023-09-22 20:54:32.526085255 +0200
14 uintptr_t BaseAddress =
15 reinterpret_cast<uintptr_t>(Section.getAddress());
16 - uintptr_t StubAlignment = getStubAlignment();
17 +// uintptr_t StubAlignment = getStubAlignment();
18 StubAddress = BaseAddress + StubOffset;
19 StubAddress = llvm::alignTo(StubAddress, 4U);
20 StubOffset = StubAddress - BaseAddress;
23 uintptr_t BaseAddress =
24 reinterpret_cast<uintptr_t>(Section.getAddress());
25 - uintptr_t StubAlignment = getStubAlignment();
26 +// uintptr_t StubAlignment = getStubAlignment();
27 StubAddress = BaseAddress + StubOffset;
28 StubAddress = llvm::alignTo(StubAddress, 4U);
29 StubOffset = StubAddress - BaseAddress;
32 uintptr_t BaseAddress =
33 reinterpret_cast<uintptr_t>(Section.getAddress());
34 - uintptr_t StubAlignment = getStubAlignment();
35 +// uintptr_t StubAlignment = getStubAlignment();
37 StubAddress = BaseAddress + StubOffset;
38 StubAddress = llvm::alignTo(StubAddress, 8U);
41 uintptr_t BaseAddress =
42 reinterpret_cast<uintptr_t>(Section.getAddress());
43 - uintptr_t StubAlignment = getStubAlignment();
44 +// uintptr_t StubAlignment = getStubAlignment();
45 StubAddress = BaseAddress + StubOffset;
46 StubAddress = llvm::alignTo(StubAddress, 8U);
47 StubOffset = StubAddress - BaseAddress;