From: Nikita Popov Date: Mon, 19 Dec 2022 08:38:44 +0000 (+0100) Subject: [Examples] Fix build (NFC) X-Git-Tag: upstream/17.0.6~23304 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d3f9adf04821f80b0017afff06edc73f9b86a5c;p=platform%2Fupstream%2Fllvm.git [Examples] Fix build (NFC) Can't use VLA at file scope. --- diff --git a/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c b/llvm/examples/OrcV2Examples/OrcV2CBindingsMCJITLikeMemoryManager/OrcV2CBindingsMCJITLikeMemoryManager.c index 1e80ae0..ee06e56 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];