[Mlir-commits] [mlir] [mlir] Fix a crash in ensure-debug-info-scope-on-llvm-func. (PR #178337)
Christian Ulmann
llvmlistbot at llvm.org
Wed Jan 28 03:48:18 PST 2026
================
@@ -160,3 +160,17 @@ module {
} loc(#loc)
} loc(unknown)
+// -----
+
+// Test that operations with CallSiteLoc outside of an llvm.func do not crash.
+module {
+ llvm.func @dummy()
+ func.func @test_func() {
+ return
+ } loc(#loc2)
+} loc(unknown)
----------------
Dinistro wrote:
```suggestion
llvm.func @dummy()
func.func @test_func() {
return
} loc(#loc2)
```
Nit: I don't think that module is required here, but maybe we should clean this in the whole test in a separate NFC commit
https://github.com/llvm/llvm-project/pull/178337
More information about the Mlir-commits
mailing list