<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 - Global variable always appears null"
   href="https://bugs.llvm.org/show_bug.cgi?id=35892">35892</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Global variable always appears null
          </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>Windows NT
          </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>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>zturner@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>amccarth@google.com, llvm-bugs@lists.llvm.org, llvm@inglorion.net, rnk@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Generate CMake like this:

cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_TARGETS_TO_BUILD=X86
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_COMPILER=D:/src/llvmbuild/cl/Release/x64/bin/clang-cl.exe
-DCMAKE_CXX_COMPILER=D:/src/llvmbuild/cl/Release/x64/bin/clang-cl.exe
..\..\..\..\llvm-mono\llvm

This self-hosts using clang + msvc linker.  

Now debug lld in Visual Studio, putting a breakpoint in Writer::run().  On the
first line, try to print the value of `Config`.  It says the value is null. 
However, it's obvious from inspecting the code that the value cannot possibly
be null or else the program would crash.  So we have some bad debug info here.</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>