<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58383>58383</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb] Crash when printing `clang::CallExpr`: `Unexpected type for integer literal: _Bool`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aeubanks
</td>
</tr>
</table>
<pre>
```
$ cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O1 -g -fno-optimize-sibling-calls" -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O1 -g -fno-optimize-sibling-calls" -DLLVM_ENABLE_PROJECTS='clang;lldb;cross-project-tests' -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_UNREACHABLE_OPTIMIZE=OFF -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_LLD=ON ../../llvm
# using a relative close to head clang as host compiler
$ ninja lldb clang lldb-server
$ ./bin/lldb bin/clang -o 'im loo -t "clang::CallExpr"'
(lldb) im loo -t "clang::CallExpr"
Unexpected type for integer literal!
UNREACHABLE executed at /home/aeubanks/repos/llvm-project/clang/lib/AST/StmtPrinter.cpp:1280!
```
dumping the type right before it crashes shows
`BuiltinType 0x55853bdd30e0 '_Bool'`
I've been unable to manually repro with `_Bool` in a small C/C++ example, which seems to map to normal `bool`.
Probably similar to #58135? @DavidSpickett
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVU2TozYQ_TX4osIFwjD4wMEfMOvEY7tsT3aSi0tAj9GOQJQk5mN_fVpgz2w2OWyqUkmFkgWWWo_u1_2aXJZviRN5l-EtHW_m0AkpavYExL3d8OYLI-5ycTf7OT3N71fr5en46y51guUexGduqiXkq-ZRvtssTtl6dns47dP159Xx0zKdrzbZFu0dSt2tT9wzcR8b6crW8Jp_B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