Skip to content

Commit

Permalink
Fix non-polymer build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed May 17, 2024
1 parent a1e7eec commit dab60b6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/polygeist/Passes/AffineOpt.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifdef POLYGEIST_ENABLE_POLYMER

#include "mlir/IR/Visitors.h"
#include "mlir/Transforms/Passes.h"
#include <utility>
#ifdef POLYGEIST_ENABLE_POLYMER

#include "PassDetails.h"

Expand Down Expand Up @@ -229,7 +230,14 @@ std::unique_ptr<Pass> mlir::polygeist::createAffineOptPass() {

#else

std::unique_ptr<Pass> mlir::polygeist::createAffineOptPass() {
#include <cstdlib>
#include <memory>

namespace mlir {
class Pass;
}

std::unique_ptr<mlir::Pass> mlir::polygeist::createAffineOptPass() {
abort();
return nullptr;
}
Expand Down

0 comments on commit dab60b6

Please sign in to comment.