[Mlir-commits] [mlir] [MLIR][MLProgram] Fix crash in mlprogram-pipeline-globals on unresolvable callees (PR #189244)
Hocky Yudhiono
llvmlistbot at llvm.org
Tue Mar 31 01:36:32 PDT 2026
================
@@ -219,6 +219,31 @@ func.func @call_indirect_load() {
// -----
+// Calling a function that is declared but not defined in this module (no body)
+// should not crash - the pass should bail out gracefully.
+// See https://github.com/llvm/llvm-project/issues/109649
+
+// CHECK-LABEL: @global_variable
+ml_program.global private mutable @global_variable(dense<4> : tensor<4xi32>) : tensor<4xi32>
+
+// External function declaration (no body).
+func.func private @external_func() -> ()
----------------
hockyy wrote:
I confirmed that this regression test doesn't crash the original legacy pass.. it seems like external function are still considered as a valid global symbol and not a null.
https://github.com/llvm/llvm-project/pull/189244
More information about the Mlir-commits
mailing list