<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/91726>91726</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [diagtool] diagtool gives different output on Windows and run into an exception
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sivan-shani
      </td>
    </tr>
</table>

<pre>
    What code / commands /steps will reproduce the problem?
Run diagtool on Windows:
`../build-clang/bin/diagtool.exe tree --internal > out.diagtool.tree.1`

What is the expected result?
- same output as on Linux/Mac
- no exception
[out.diagtool.tree.json](https://github.com/llvm/llvm-project/files/15274224/out.diagtool.tree.json)
[out.diagtool.tree-win.json](https://github.com/llvm/llvm-project/files/15274225/out.diagtool.tree-win.json)

What [out.diagtool.tree.1](https://github.com/secure/attachment/1276953/1276953_out.diagtool.tree.1)happens instead?
- output is different (see attached output)
- getting exception:
`Assertion failed: !KeyInfoT::isEqual(Val, EmptyKey) && !KeyInfoT::isEqual(Val, TombstoneKey) && "Empty/Tombstone value shouldn't be inserted into map!", file C:\Users\sivsha01\testing\src\llvm-project\llvm\include\llvm/ADT/DenseMap.h, line 651`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE2P4zYM_TX0RYhh01ESH3zIJmOg2O6lmHaPhWIxthay5JrSfPz7Qp58TNtZtAX2IlsS9fhIPlIxm94RNSA_gTxmKobBzw2bJ-VWPChnspPXr83XQQXReU0CsBWdH0flNKcNB5pYPBtrxUzT7HXsSISBxDT7k6URqhaKIxT7X6IT2qg-eG-Fd-Krcdo_M1T7t3vYFHkO2J6isXrVWeX6tDMOsL2-y-mFRJiJxGplXKDZKSugehA-hvxmlAzyEjbFBXhZlwgML9ToZaIukBYzcbThRnElWI2UwKYYhOJE82fj4gtg-0V1VyPnBb10NAXj3cWF_PRPBt_YO5BHwN0QwrQEii1g25swxFPe-RGwtfbp-llNs_9GXQBsz8YSA7alxO0acQ3Yfgcf6-8zWD0b9wNZyI9Y3H3cmNzT_WFayn9lw9TFmQBbFYLqhpFcYlPidlPL6v73-0fYWA9qmsixMI4DKf2uuJe6GhbanM80kwsCcMdE4s0T6YvNLZiV6CkE4_p3FX8n2D0zzelQnJWxpKHaC8DyM73-5M7-MZlWe8MPf0RlAXe_pfUgHsYpvH6mV8BaAG4AN__h0aMfTxy8o78_xAUOsL1ZiCdlIwkefLTaAW6DOFHKB81J9MYFL0Y1AZaAmLBTocUhOZaHX5lmBnlg88SDKkqQh0CcUpAO5w7k4S8yeduCPBjX2ajpeoDt_vgI2B7JMX1RUz4kT9Y4EhuZmjPTTaXrqlYZNeW2lFVVo6yzoZG01bJbn7fnsqi3u01Vaax3xU5X1blY15iZBgtcF7IsyrLYVnWuu-pc6lIXSHVVVgrWBY3K2Dwxyf3cZ4Y5UlOXW9xkVp3I8jLxEB09i-UypUIes7lZojvFnmFdWMOB7yjBBLuMyqvqQB7vM603T_ReWhe53UedUE6LObq3Cih311QWZ9v87_5ceKcGXeL6MwAA__-nR9yw">