remmina: update to 1.4.37
[oi-userland.git] / components / developer / clang-18 / patches / 12-StubAlignment.patch
blobf131241d15db50386b860e65ba954ccbb577fd01
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();
3 # | ~~~~~~~~~~~~~~~~^~
4 # | |
5 # | llvm::Align
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-18.1.8.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp.orig
11 +++ llvm-18.1.8.src/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
12 @@ -2185,7 +2185,7 @@
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;
21 @@ -2216,7 +2216,7 @@
22 } else {
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;
30 @@ -2257,7 +2257,7 @@
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);
39 @@ -2299,7 +2299,7 @@
40 } else {
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;