From af7800e661b23ecf2adb6d7c86936a6b6a58cfb5 Mon Sep 17 00:00:00 2001 From: Jon Haslam Date: Mon, 5 Feb 2024 13:10:43 +0000 Subject: [PATCH] std_align_t fix (#475) --- oi/OICompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/oi/OICompiler.cpp b/oi/OICompiler.cpp index cd67c68..a11d684 100644 --- a/oi/OICompiler.cpp +++ b/oi/OICompiler.cpp @@ -499,6 +499,7 @@ bool OICompiler::compile(const std::string& code, compInv->getLangOpts()->Exceptions = true; compInv->getLangOpts()->CXXExceptions = true; compInv->getLangOpts()->Coroutines = true; + compInv->getLangOpts()->AlignedAllocation = true; compInv->getPreprocessorOpts(); compInv->getPreprocessorOpts().addRemappedFile(