<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - DWARF line number 0 generated for nullptr"
   href="https://bugs.llvm.org/show_bug.cgi?id=47831">47831</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DWARF line number 0 generated for nullptr
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jan.kratochvil@redhat.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>6121117484ddd7c5a03b40004a8bba58506ce9d0 = 2020-10-13

echo >line0.C 'extern void *p; void *f() { return p?:nullptr; }'|clang++ -c
-Wall -g -emit-llvm -o line0.bc line0.C;llvm-dis line0.bc;llc line0.bc;clang++
-c -o line0.o -Wall line0.s;llvm-dwarfdump -debug-line line0.o;llvm-objdump
-dlCr line0.o

Address            Line   Column File   ISA Discriminator Flags
------------------ ------ ------ ------ --- ------------- -------------
0x0000000000000000      1      0      1   0             0  is_stmt
0x0000000000000004      1     36      1   0             0  is_stmt prologue_end
0x0000000000000014      0     36      1   0             0 
0x0000000000000016      1     36      1   0             0 

       c: 48 83 f8 00                   cmpq    $0, %rax
      10: 74 02                         je      0x14 <f()+0x14>
      12: eb 04                         jmp     0x18 <f()+0x18>

      14: 31 c0                         xorl    %eax, %eax
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ line==0

      16: eb 00                         jmp     0x18 <f()+0x18>
      18: 5d                            popq    %rbp
      19: c3                            retq

  %0 = load i8*, i8** @p, align 8, !dbg !11
  %tobool = icmp ne i8* %0, null, !dbg !11
  br i1 %tobool, label %cond.true, label %cond.false, !dbg !11
cond.true:                                        ; preds = %entry
  br label %cond.end, !dbg !11
cond.false:                                       ; preds = %entry
  br label %cond.end, !dbg !11
cond.end:                                         ; preds = %cond.false,
%cond.true
  %cond = phi i8* [ %0, %cond.true ], [ null, %cond.false ], !dbg !11
                                        ^^^^ has no !dbg attached</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>