Skip to content

Commit

Permalink
Revert "Add a static assertions for custom Op<> to not defined data m…
Browse files Browse the repository at this point in the history
…embers (NFC)"

This reverts commit c0edcec.

The windows bot was broken by this change.
  • Loading branch information
joker-eph committed Jun 9, 2021
1 parent 2c81154 commit a0ac514
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mlir/include/mlir/IR/OpDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -1780,8 +1780,6 @@ class Op : public OpState, public Traits<ConcreteType>... {
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()));
Expand Down

0 comments on commit a0ac514

Please sign in to comment.