<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 - Assertion `addr_size == 4 || addr_size == 8' failed when evaluating reference to a static array inside noinline static function in program compiled with -O2"
   href="https://bugs.llvm.org/show_bug.cgi?id=44872">44872</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `addr_size == 4 || addr_size == 8' failed when evaluating reference to a static array inside noinline static function in program compiled with -O2
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pierre.vanhoutryve@arm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>OS: Ubuntu 18.04.3 LTS

lldb version 11.0.0
  clang revision e8c3a6c2606abdbf4f207c8b22e0f532d6247564
  llvm revision e8c3a6c2606abdbf4f207c8b22e0f532d6247564

clang version 11.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
e8c3a6c2606abdbf4f207c8b22e0f532d6247564)
Target: x86_64-unknown-linux-gnu
Thread model: posix

This happens when evaluating 'array' inside the loop (line 5) in the
lldb-bug.cpp file.

Program compiled using "clang lldb-bug.cpp -O2 -g" and then ran using "lldb
a.out".

I've attached the reproducer. I also added a "output.txt" file with the
stacktrace.</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>