Skip to content

Commit 4044b27

Browse files
authored
Merge pull request #59679 from zoecarver/fix-frt-for-debug
[lldb][cxx-interop] Tell LLDB about the extra layer of indireciton for foriegn reference types.
2 parents 90fa95c + 0563889 commit 4044b27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2613,6 +2613,10 @@ void IRGenDebugInfoImpl::emitVariableDeclaration(
26132613

26142614
for (llvm::Value *Piece : Storage) {
26152615
SmallVector<uint64_t, 3> Operands;
2616+
2617+
if (DbgTy.getType()->isForeignReferenceType())
2618+
Operands.push_back(llvm::dwarf::DW_OP_deref);
2619+
26162620
if (Indirection == IndirectValue || Indirection == CoroIndirectValue)
26172621
Operands.push_back(llvm::dwarf::DW_OP_deref);
26182622

0 commit comments

Comments
 (0)