Skip to content

Commit

Permalink
Adjust to make safe for LLVM 11
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Jan 6, 2025
1 parent e920934 commit e38f094
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/liboslexec/llvm_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,10 @@ void
LLVM_Util::setup_new_optimization_passes(int optlevel, bool target_host)
{
#ifdef OSL_LLVM_NEW_PASS_MANAGER
# if OSL_LLVM_VERSION <= 110
# error "New pass manager not supported in LLVM 11 and earlier"
# endif

OSL_DEV_ONLY(std::cout << "setup_new_optimization_passes " << optlevel);
OSL_ASSERT(m_new_pass_manager == nullptr);

Expand Down

0 comments on commit e38f094

Please sign in to comment.