[mlir] Fix verifier for call debug locations
D157096 introduces a new verifier for debug location on call operation. `isDeclaration()` is actually not defined for `LLVMFuncOp` and default to the interface definition that always return `false`. This leads to wrong diagnostic in some case as shown in the added test. Use `callee.isExternal()` instead that returns the desired information. We have seen this error being triggered during flang codegen. Reviewed By: Dinistro, vzakhari Differential Revision: https://reviews.llvm.org/D157447
parent
977cb4fd
Please register or sign in to comment