[llvm] 9d3f9ad - [Examples] Fix build (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 00:39:10 PST 2022
Author: Nikita Popov
Date: 2022-12-19T09:38:44+01:00
New Revision: 9d3f9adf04821f80b0017afff06edc73f9b86a5c
URL: https://github.com/llvm/llvm-project/commit/9d3f9adf04821f80b0017afff06edc73f9b86a5c
DIFF: https://github.com/llvm/llvm-project/commit/9d3f9adf04821f80b0017afff06edc73f9b86a5c.diff
LOG: [Examples] Fix build (NFC)
Can't use VLA at file scope.
Added:
Modified:
llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c
Removed:
################################################################################
diff --git a/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c b/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c
index 1e80ae091ff20..ee06e562d7831 100644
--- a/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c
+++ b/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c
@@ -40,7 +40,7 @@ struct Section {
char CtxCtxPlaceholder;
char CtxPlaceholder;
-const size_t MaxSections = 16;
+#define MaxSections 16
static size_t SectionCount = 0;
static struct Section Sections[MaxSections];
More information about the llvm-commits
mailing list