Revert "Add a static assertions for custom Op<> to not defined data members (NFC)"
authorMehdi Amini <joker.eph@gmail.com>
Wed, 9 Jun 2021 00:46:02 +0000 (00:46 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 9 Jun 2021 00:46:02 +0000 (00:46 +0000)
This reverts commit c0edcec630eb26e12d66dae2f0e1fbf5258cb6ac.

The windows bot was broken by this change.

mlir/include/mlir/IR/OpDefinition.h

index bb6ff8d..dadf028 100644 (file)
@@ -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()));