[NFC] Generically resolve body in FunctionOpInterface verifyBody.
authorStella Laurenzo <stellaraccident@gmail.com>
Thu, 14 Apr 2022 03:13:18 +0000 (20:13 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Thu, 14 Apr 2022 03:58:19 +0000 (20:58 -0700)
commit4f7585195d59877624ecaab003131e1662b4f5b2
tree8316fa55b9701a9e62d7927be2d129a9bc74cfaa
parent71d88b4ba8b0d45070b2f52b807f461fec737638
[NFC] Generically resolve body in FunctionOpInterface verifyBody.

Since the actual implementation class can arbitrarily shadow parts of the FunctionOpInterface exported API, access the body generically instead of via the use of the interface being defined.

Fixes https://github.com/llvm/llvm-project/issues/54807

Differential Revision: https://reviews.llvm.org/D123757
mlir/include/mlir/IR/FunctionInterfaces.td