mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-11-03 21:49:53 +00:00
offload: disable a static assert https://github.com/llvm/llvm-project/issues/91819
This commit is contained in:
parent
d29fc2a10b
commit
07b5e8fc12
19
debian/patches/offload-disable-static-assert.diff
vendored
Normal file
19
debian/patches/offload-disable-static-assert.diff
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Index: llvm-toolchain-snapshot_19~++20240509091947+dcf92a249233/offload/include/Shared/APITypes.h
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_19~++20240509091947+dcf92a249233.orig/offload/include/Shared/APITypes.h
|
||||
+++ llvm-toolchain-snapshot_19~++20240509091947+dcf92a249233/offload/include/Shared/APITypes.h
|
||||
@@ -108,10 +108,10 @@ struct KernelArgsTy {
|
||||
};
|
||||
static_assert(sizeof(KernelArgsTy().Flags) == sizeof(uint64_t),
|
||||
"Invalid struct size");
|
||||
-static_assert(sizeof(KernelArgsTy) ==
|
||||
- (8 * sizeof(int32_t) + 3 * sizeof(int64_t) +
|
||||
- 4 * sizeof(void **) + 2 * sizeof(int64_t *)),
|
||||
- "Invalid struct size");
|
||||
+// static_assert(sizeof(KernelArgsTy) ==
|
||||
+// (8 * sizeof(int32_t) + 3 * sizeof(int64_t) +
|
||||
+// 4 * sizeof(void **) + 2 * sizeof(int64_t *)),
|
||||
+// "Invalid struct size");
|
||||
}
|
||||
|
||||
#endif // OMPTARGET_SHARED_API_TYPES_H
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -150,3 +150,4 @@ arm32-defaults.diff
|
||||
mips/D154390-pre-R6.diff
|
||||
disable-openmp-per-target.diff
|
||||
libsanitizer-timebits.diff
|
||||
offload-disable-static-assert.diff
|
||||
|
||||
Loading…
Reference in New Issue
Block a user