[llvm] [DebugInfo][InferAddressSpaces] Fix the missing debug location update for the new addrspacecast (PR #97038)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 06:18:33 PDT 2024


================
@@ -30,5 +30,4 @@ define float @generic_ptr_from_constant() !dbg !5 {
 !7 = !{}
 !8 = !DILocation(line: 1, column: 1, scope: !5)
 !9 = !DILocation(line: 2, column: 1, scope: !5)
-!10 = !DILocation(line: 3, column: 1, scope: !5)
-
+!10 = !DILocation(line: 3, column: 1, scope: !5)
----------------
arsenm wrote:

```suggestion
!10 = !DILocation(line: 3, column: 1, scope: !5)

```

One too many lines lost 

https://github.com/llvm/llvm-project/pull/97038


More information about the llvm-commits mailing list