Use dyn_cast_or_null instead of dyn_cast in FunctionLike::verifyTrait (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Sat, 12 Jun 2021 20:08:37 +0000 (20:08 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 12 Jun 2021 20:08:37 +0000 (20:08 +0000)
commit8bc1ce0f61da0b2d0c3a17aec898df7001336ea5
tree2f00afda1e904acaa07bba36a0558dca6ce4d744
parent5899278758b66a5e72c1ae9695651c2aef7406c4
Use dyn_cast_or_null instead of dyn_cast in FunctionLike::verifyTrait (NFC)

This is making the verifier more tolerant to cases where a "null"
Attribute would be inserted in the array of func arguments/results
attributes.
mlir/include/mlir/IR/FunctionSupport.h