offload-disable-static-assert
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 14 Jan 2025 13:16:47 +0000 (14:16 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 14 Jan 2025 13:16:47 +0000 (14:16 +0100)
===================================================================

Gbp-Pq: Name offload-disable-static-assert.diff

offload/include/Shared/APITypes.h

index 5b22bbaac144fe740f4bab0aab29c08d28e0dd5b..5c7400fe4a853205d482b6b2ab0848ccbcd661dc 100644 (file)
@@ -112,10 +112,10 @@ struct KernelArgsTy {
 };
 static_assert(sizeof(KernelArgsTy().Flags) == sizeof(uint64_t),
               "Invalid struct size");
-static_assert(sizeof(KernelArgsTy) ==
+/*static_assert(sizeof(KernelArgsTy) ==
                   (8 * sizeof(int32_t) + 3 * sizeof(int64_t) +
                    4 * sizeof(void **) + 2 * sizeof(int64_t *)),
-              "Invalid struct size");
+                                  "Invalid struct size");*/
 
 /// Flat array of kernel launch parameters and their total size.
 struct KernelLaunchParamsTy {