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

    <tr>
        <th>Summary</th>
        <td>
            LLDB segfault
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    I'm submitting the stack trace as it asked me to...

```text
PLEASE submit a bug report to https://developer.apple.com/bug-reporting/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb ./build-debug/MyApp/MyApp.app/Contents/MacOS/MyApp
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  lldb                     0x000000010f70b357 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1  lldb                     0x000000010f70aa85 llvm::sys::RunSignalHandlers() + 85
2  lldb                     0x000000010f70ba00 SignalHandler(int) + 288
3  libsystem_platform.dylib 0x00007ff802cf9c1d _sigtramp + 29
4  libsystem_malloc.dylib   0x00007ff802b26006 free_tiny + 515
5  LLDB                     0x00000001218b2835 isSafeToConvert(clang::RecordDecl const*, clang::CodeGen::CodeGenTypes&, llvm::SmallPtrSet<clang::RecordDecl const*, 16u>&) + 533
6  LLDB                     0x00000001218b28c5 isSafeToConvert(clang::RecordDecl const*, clang::CodeGen::CodeGenTypes&, llvm::SmallPtrSet<clang::RecordDecl const*, 16u>&) + 677
7  LLDB                     0x00000001218b1508 clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) + 376
8  LLDB                     0x00000001218aff82 clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType, bool) + 98
9  LLDB                     0x00000001218b056a clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 1402
10 LLDB                     0x00000001218aff82 clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType, bool) + 98
11 LLDB                     0x0000000121800485 (anonymous namespace)::CGRecordLowering::getStorageType(clang::FieldDecl const*) + 37
12 LLDB                     0x00000001217fd1ad (anonymous namespace)::CGRecordLowering::lower(bool) + 2733
13 LLDB                     0x00000001217fc183 clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*, llvm::StructType*) + 243
14 LLDB                     0x00000001218b15f4 clang::CodeGen::CodeGenTypes::ConvertRecordDeclType(clang::RecordDecl const*) + 612
15 LLDB                     0x00000001218aff82 clang::CodeGen::CodeGenTypes::ConvertTypeForMem(clang::QualType, bool) + 98
16 LLDB                     0x00000001218b056a clang::CodeGen::CodeGenTypes::ConvertType(clang::QualType) + 1402
17 LLDB                     0x0000000121920808 (anonymous namespace)::X86_64ABIInfo::classifyArgumentType(clang::QualType, unsigned int, unsigned int&, unsigned int&, bool) const + 376
18 LLDB                     0x000000012191e636 (anonymous namespace)::X86_64ABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&) const + 1334
19 LLDB                     0x000000012162bc1d clang::CodeGen::CodeGenTypes::arrangeLLVMFunctionInfo(clang::CanQual<clang::Type>, bool, bool, llvm::ArrayRef<clang::CanQual<clang::Type> >, clang::FunctionType::ExtInfo, llvm::ArrayRef<clang::FunctionType::ExtParameterInfo>, clang::CodeGen::RequiredArgs) + 701
20 LLDB                     0x000000012162c0ae arrangeLLVMFunctionInfo(clang::CodeGen::CodeGenTypes&, bool, llvm::SmallVectorImpl<clang::CanQual<clang::Type> >&, clang::CanQual<clang::FunctionProtoType>) + 590
21 LLDB                     0x000000012162c17a clang::CodeGen::CodeGenTypes::arrangeCXXMethodType(clang::CXXRecordDecl const*, clang::FunctionProtoType const*, clang::CXXMethodDecl const*) + 154
22 LLDB                     0x000000012162c354 clang::CodeGen::CodeGenTypes::arrangeCXXMethodDeclaration(clang::CXXMethodDecl const*) + 388
23 LLDB                     0x000000012186e77f clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 47
24 LLDB                     0x0000000121868044 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 452
25 LLDB                     0x00000001218719ab clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 2235
26 LLDB                     0x00000001218ea01f (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 127
27 LLDB                     0x000000011f3e77a0 lldb_private::ASTResultSynthesizer::HandleTopLevelDecl(clang::DeclGroupRef) + 160
28 LLDB                     0x000000012227ca97 clang::ParseAST(clang::Sema&, bool, bool) + 775
29 LLDB                     0x000000011f40ec21 lldb_private::ClangExpressionParser::ParseInternal(lldb_private::DiagnosticManager&, clang::CodeCompleteConsumer*, unsigned int, unsigned int) + 2337
30 LLDB                     0x000000011f4224d3 lldb_private::ClangUserExpression::TryParse(lldb_private::DiagnosticManager&, lldb_private::ExecutionContextScope*, lldb_private::ExecutionContext&, lldb_private::ExecutionPolicy, bool, bool) + 339
31 LLDB                     0x000000011f4229a0 lldb_private::ClangUserExpression::Parse(lldb_private::DiagnosticManager&, lldb_private::ExecutionContext&, lldb_private::ExecutionPolicy, bool, bool) + 320
32 LLDB                     0x000000011ed3ace7 lldb_private::UserExpression::Evaluate(lldb_private::ExecutionContext&, lldb_private::EvaluateExpressionOptions const&, llvm::StringRef, llvm::StringRef, std::__1::shared_ptr<lldb_private::ValueObject>&, lldb_private::Status&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, lldb_private::ValueObject*) + 2311
33 LLDB                     0x000000011ee4a2e4 lldb_private::Target::EvaluateExpression(llvm::StringRef, lldb_private::ExecutionContextScope*, std::__1::shared_ptr<lldb_private::ValueObject>&, lldb_private::EvaluateExpressionOptions const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, lldb_private::ValueObject*) + 484
34 LLDB                     0x000000011f35a249 lldb_private::CommandObjectExpression::EvaluateExpression(llvm::StringRef, lldb_private::Stream&, lldb_private::Stream&, lldb_private::CommandReturnObject&) + 585
35 LLDB                     0x000000011f35b1bf lldb_private::CommandObjectExpression::DoExecute(llvm::StringRef, lldb_private::CommandReturnObject&) + 1567
36 LLDB                     0x000000011ed79992 lldb_private::CommandObjectRaw::Execute(char const*, lldb_private::CommandReturnObject&) + 418
37 LLDB                     0x000000011ed6e866 lldb_private::CommandInterpreter::HandleCommand(char const*, lldb_private::LazyBool, lldb_private::CommandReturnObject&) + 2278
38 LLDB                     0x000000011ed73458 lldb_private::CommandInterpreter::IOHandlerInputComplete(lldb_private::IOHandler&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 920
39 LLDB                     0x000000011ec9ad3a lldb_private::IOHandlerEditline::Run() + 346
40 LLDB                     0x000000011ec7dfdf lldb_private::Debugger::RunIOHandlers() + 143
41 LLDB                     0x000000011ed748ae lldb_private::CommandInterpreter::RunCommandInterpreter(lldb_private::CommandInterpreterRunOptions&) + 158
42 LLDB                     0x000000011eb9e61c lldb::SBDebugger::RunCommandInterpreter(bool, bool) + 140
43 lldb                     0x000000010f6fb668 Driver::MainLoop() + 2600
44 lldb                     0x000000010f6fc56b main + 2523
45 dyld                     0x00007ff80299e310 start + 2432
zsh: segmentation fault  lldb ./build-debug/.....
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVWltz4jgW_jXkRdWULd8feCCBZFJFKtmQ7erdF0q2ZfCObXllOR3618-RJQcIJoiena2eVAqwLB9956JzPkmOWbqd3I9wUKKmjctciLxaI7GhqBEk-R0JThKKSINyAZ-_0xSVFAk2Ho9H1mxkTfWnb6l_Qd-EanpazKfLuRaKCIrbNeK0ZlzA42gjRN2MnOkI38J_Sl9pwWrKx6SuCzpOWAmt8MQX9QRAgmtEqhTlVVK0Ke0QJpw0GxQDzA6lRrTscKdtWUv5XZMFt6InztaclIjwd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