Skip to content

Commit

Permalink
Fix flang test after MLIR API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-eph committed Aug 19, 2020
1 parent 4fc56d7 commit 2d83014
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flang/unittests/Lower/OpenMPLoweringTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
#include "gtest/gtest.h"
#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
#include "mlir/IR/Builders.h"
#include "mlir/InitAllDialects.h"
#include "flang/Parser/parse-tree.h"
#include "llvm/Frontend/OpenMP/OMPConstants.h"

class OpenMPLoweringTest : public testing::Test {
protected:
void SetUp() override {
mlir::registerDialect<mlir::omp::OpenMPDialect>();
mlir::registerAllDialects(&ctx);
ctx.loadDialect<mlir::omp::OpenMPDialect>();
mlir::registerAllDialects(ctx.getDialectRegistry());
mlirOpBuilder.reset(new mlir::OpBuilder(&ctx));
}

Expand Down

0 comments on commit 2d83014

Please sign in to comment.