aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-06-09 00:46:02 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-06-09 00:46:02 +0000
commita0ac51467697d45a353ed9710ca5c75b6bf9b763 (patch)
tree0a152e0b26f4f52a5b17a9922ed7c0b1c4f2027e
parent2c8115482312fc0c7ce836f0f0886d0e153183eb (diff)
downloadllvm-a0ac51467697d45a353ed9710ca5c75b6bf9b763.zip
llvm-a0ac51467697d45a353ed9710ca5c75b6bf9b763.tar.gz
llvm-a0ac51467697d45a353ed9710ca5c75b6bf9b763.tar.bz2
Revert "Add a static assertions for custom Op<> to not defined data members (NFC)"
This reverts commit c0edcec630eb26e12d66dae2f0e1fbf5258cb6ac. The windows bot was broken by this change.
-rw-r--r--mlir/include/mlir/IR/OpDefinition.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/mlir/include/mlir/IR/OpDefinition.h b/mlir/include/mlir/IR/OpDefinition.h
index bb6ff8d..dadf028 100644
--- a/mlir/include/mlir/IR/OpDefinition.h
+++ b/mlir/include/mlir/IR/OpDefinition.h
@@ -1780,8 +1780,6 @@ private:
return &verifyInvariants;
}
static LogicalResult verifyInvariants(Operation *op) {
- static_assert(sizeof(ConcreteType) == sizeof(OpState),
- "Op class aren't allowed to have data members");
return failure(
failed(op_definition_impl::verifyTraits<VerifiableTraitsTupleT>(op)) ||
failed(cast<ConcreteType>(op).verify()));