<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - addScopeVariable(llvm::LexicalScope*, llvm::DbgVariable*): Assertion `CurNum != ArgNum && "Duplicate argument"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=22386">22386</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>addScopeVariable(llvm::LexicalScope*, llvm::DbgVariable*): Assertion `CurNum != ArgNum && "Duplicate argument"' failed.
          </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>All
          </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>aprantl@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>struct A {
  int arg0;
  double arg1[2];
} a, b;

void fn3(A p1) {
  if (p1.arg0)
    a = p1;
}

void fn4() { fn3(b); }

void fn5() {
  while (1)
    fn4();
}

clang -cc1 -triple aarch64 -S -g -O3 -std=c++11 dbg-info.cpp


0x00000109:   DW_TAG_subprogram [15] *
                DW_AT_name [DW_FORM_strp]       ( .debug_str[0x000000a3] =
"fn5")
                ...

0x00000122:     DW_TAG_inlined_subroutine [13] *
                  DW_AT_abstract_origin [DW_FORM_ref4]  (cu + 0x00fd =>
{0x000000fd} "_Z3fn4v")
                  ...

0x00000135:       DW_TAG_inlined_subroutine [16] *
                    DW_AT_abstract_origin [DW_FORM_ref4]        (cu + 0x00b2 =>
{0x000000b2} "_Z3fn31A")
                    DW_AT_ranges [DW_FORM_sec_offset]   (0x00000000
                       [0x0000000000000080 - 0x0000000000000088)
                       [0x0000000000000098 - 0x00000000000000a8))
                    DW_AT_call_file [DW_FORM_data1]    
("/tmp/dbginfo/creduce/crash1/dbg-info.cpp")
                    DW_AT_call_line [DW_FORM_data1]     (11)

0x00000140:         DW_TAG_formal_parameter [10]  
                      DW_AT_location [DW_FORM_exprloc]  (<0x5> 6f 9d a0 01 20 )
                      DW_AT_abstract_origin [DW_FORM_ref4]      (cu + 0x00be =>
{0x000000be} "p1")

0x0000014b:         DW_TAG_formal_parameter [10]  
                      DW_AT_location [DW_FORM_exprloc]  (<0x5> 6f 9d a0 01 20 )
                      DW_AT_abstract_origin [DW_FORM_ref4]      (cu + 0x00be =>
{0x000000be} "p1")</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>