diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2024-08-25 10:03:16 +0100 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2024-08-25 10:08:45 +0100 |
commit | 2847020dbd9b8f932ee564651ec72ce15fa37d07 (patch) | |
tree | 9605615ca4a8038481812134a7caa747b3939c02 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | f22b1da8791edd557ce34c87190e329df2e1c892 (diff) | |
download | llvm-2847020dbd9b8f932ee564651ec72ce15fa37d07.zip llvm-2847020dbd9b8f932ee564651ec72ce15fa37d07.tar.gz llvm-2847020dbd9b8f932ee564651ec72ce15fa37d07.tar.bz2 |
[lldb][TypeSystemClang][NFC] Log failure to InitBuiltinTypes
If we fail to initialize the ASTContext builtins, LLDB
may crash in non-obvious ways down-the-line, e.g., when
it tries to call `ASTContext::getTypeSize` on a builtin like
`ast.UnsignedCharTy`, which would derefernce a `null` `QualType`.
The initialization can fail if we either didn't set the
`TypeSystemClang` target triple, or if the embedded clang isn't
enabled for a certain target.
This patch attempts to help pin-point the failure case post-mortem
by adding a log message here that prints the triple.
rdar://134260837
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions