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

    <tr>
        <th>Summary</th>
        <td>
            pp-trace crashes when passed no arguments
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          TestingPlant
      </td>
    </tr>
</table>

<pre>
    When running `pp-trace` without arguments, it crashes.
```
$ pp-trace
/usr/include/c++/11.2.0/bits/unique_ptr.h:407: typename std::add_lvalue_reference<_Tp>::type std::unique_ptr<_Tp, _Dp>::operator*() const [with _Tp = clang::tooling::CompilationDatabase; _Dp = std::default_delete<clang::tooling::CompilationDatabase>; typename std::add_lvalue_reference<_Tp>::type = clang::tooling::CompilationDatabase&]: Assertion 'get() != pointer()' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.      Program arguments: pp-trace
 #0 0x00007f3d80b63ea7 (/usr/lib/libLLVM-13.so+0xba6ea7)
 #1 0x00007f3d80b616a6 (/usr/lib/libLLVM-13.so+0xba46a6)
 #2 0x00007f3d7fbcf560 __restore_rt libc_sigaction.c:0:0
 #3 0x00007f3d7fc1c34c __pthread_kill_implementation pthread_kill.c:0:0
 #4 0x00007f3d7fbcf4b8 gsignal (/usr/lib/libc.so.6+0x424b8)
 #5 0x00007f3d7fbb9534 abort (/usr/lib/libc.so.6+0x2c534)
 #6 0x000056268947d326 (/usr/bin/pp-trace+0x5326)
 #7 0x000056268947cff2 (/usr/bin/pp-trace+0x4ff2)
 #8 0x00007f3d7fbba310 __libc_start_call_main libc-start.c:0:0
 #9 0x00007f3d7fbba3c1 __libc_start_main@GLIBC_2.2.5 (/usr/lib/libc.so.6+0x2d3c1)
#10 0x000056268947d145 (/usr/bin/pp-trace+0x5145)
Abortado (`core' generado)
```
</pre>
<img width="1px" height="1px"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