[llvm] Globalopt pass produces invalid debug info (PR #100654)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 09:14:32 PDT 2024
================
@@ -0,0 +1,35 @@
+; RUN: opt -S -passes=globalopt --experimental-debuginfo-iterators=false <%s | FileCheck %s
+; CHECK: #dbg_value(ptr undef,
+; CHECK-SAME: [[VAR:![0-9]+]],
+; CHECK-SAME: !DIExpression()
+; CHECK: [[VAR]] = !DILocalVariable(name: "_format"
+
+
+; ModuleID = '<stdin>'
+source_filename = "test.cpp"
+
+ at _ZZZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_ENKUlvE_clEvE7_format = internal constant [24 x i8] c"Result1: Hello, World!\0A\00", align 16, !dbg !9
+
+; Function Attrs: convergent mustprogress norecurse
----------------
SLTozer wrote:
Nit, we don't need this comment.
https://github.com/llvm/llvm-project/pull/100654
More information about the llvm-commits
mailing list