<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 - [asan] Shadowed stack variables' name are not the exact source name."
   href="https://bugs.llvm.org/show_bug.cgi?id=47982">47982</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[asan] Shadowed stack variables' name are not the exact source name.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pierregousseau14@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In the sample below the reported variable's name is the LLVM ir's name 'x1'
instead of 'x'.
Any ideas how to use the source's variable name instead?

Many thanks,

Pierre

///////////////////
int main()
{
  int x;
  {
    int x;
    delete &x;
  }
  delete &x;
  return 0;
}

$ clang++ -fsanitize=address test.cpp && ./a.out
==191==ERROR: AddressSanitizer: attempting free on address which was not
malloc()-ed:
...
  This frame has 2 object(s):
    [32, 36) 'x' (line 3842)
    [48, 52) 'x1' (line 3844) <== Memory access at offset 48 is inside this
variable
///////////////////</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>