Fix interface trait declaration in SymbolInterfaces.td
authorAlex Zinenko <zinenko@google.com>
Mon, 30 Aug 2021 09:13:19 +0000 (11:13 +0200)
committerAlex Zinenko <zinenko@google.com>
Mon, 30 Aug 2021 09:15:05 +0000 (11:15 +0200)
commit9db95a67d14c918371234e5c98263a977835e19f
treef8f9e6cc8590a7342af1cb7512c01ad5d22b7dc0
parent7b0d59da9af4bf4eb8342cac579e42a818ac1ae7
Fix interface trait declaration in SymbolInterfaces.td

41d4aa7de68ed551010f27ff04ffc54e7616292a introduced incorrect code in
extraTraitClassDeclaration: `this` refers to the trait class and not the
operation class so `->getContext()` is not valid. Use `$_op` instead.
mlir/include/mlir/IR/SymbolInterfaces.td