[llvm-branch-commits] [mlir] e312b38 - Include Region.h in OperationSupport.h instead of forward declaring it (NFC)
Mehdi Amini via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 3 10:59:10 PST 2020
Author: Mehdi Amini
Date: 2020-12-03T18:54:27Z
New Revision: e312b388ebadcd074d559454aca1fd6e75e8e7a5
URL: https://github.com/llvm/llvm-project/commit/e312b388ebadcd074d559454aca1fd6e75e8e7a5
DIFF: https://github.com/llvm/llvm-project/commit/e312b388ebadcd074d559454aca1fd6e75e8e7a5.diff
LOG: Include Region.h in OperationSupport.h instead of forward declaring it (NFC)
This fixes the build on gcc5 toolchain where sizeof is required for
types used in SmallVector now.
This is a consequence of using std::is_trivially_copy_constructible
instead of the LLVM variant: https://reviews.llvm.org/D92543
Added:
Modified:
mlir/include/mlir/IR/OperationSupport.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h
index 74899c9565fe..fb3dc20964bb 100644
--- a/mlir/include/mlir/IR/OperationSupport.h
+++ b/mlir/include/mlir/IR/OperationSupport.h
@@ -18,6 +18,7 @@
#include "mlir/IR/BlockSupport.h"
#include "mlir/IR/Identifier.h"
#include "mlir/IR/Location.h"
+#include "mlir/IR/Region.h"
#include "mlir/IR/TypeRange.h"
#include "mlir/IR/Types.h"
#include "mlir/IR/Value.h"
@@ -39,7 +40,6 @@ class OperandRange;
class OpFoldResult;
class ParseResult;
class Pattern;
-class Region;
class ResultRange;
class RewritePattern;
class Type;
More information about the llvm-branch-commits
mailing list