Unverified Commit bbce1fcb authored by Valentin Clement's avatar Valentin Clement
Browse files

[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment