Skip to content

Commit

Permalink
[MLIR] Remove unneeded LLVMDialect.h include in ControlFlowToSCF.cpp
Browse files Browse the repository at this point in the history
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRControlFlowToSCF.a only:
```
In file included from llvm/include/llvm/IR/Module.h:22,
                 from mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:37,
                 from mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp:19
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```
  • Loading branch information
RoboTux committed Oct 25, 2024
1 parent dd76d9b commit ee01150
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/Dialect/UB/IR/UBOps.h"
#include "mlir/Pass/Pass.h"
Expand Down

0 comments on commit ee01150

Please sign in to comment.