Skip to content

Commit

Permalink
fix issue Unable to build on newer LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
NobinPegasus committed Apr 10, 2024
1 parent abd0b1f commit 0d019be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vm/llvm-jit/src/llvm/llvm_jit_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ static ExitOnError ExitOnErr;

static void optimizeModule(llvm::Module &M)
{
if (LLVM_VERSION_MAJOR > 16) {
// std::cout << "LLVM_VERSION_MAJOR: " << LLVM_VERSION_MAJOR << std::endl;
if (LLVM_VERSION_MAJOR >= 17) {
// =====================
// Create the analysis managers.
// These must be declared in this order so that they are destroyed in the
Expand Down

0 comments on commit 0d019be

Please sign in to comment.