mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: adjust DI for SVN r288683
The original implementation of DW_OP_bit_piece was using the wrong base for the
offset. To accommodate a fix for that, the old operation was renamed. Use the
new migration name.
(cherry picked from commit 100eaf889e)
This commit is contained in:
committed by
Adrian Prantl
parent
f5d72a6869
commit
27bf54328f
@@ -951,7 +951,7 @@ void IRGenDebugInfo::emitVariableDeclaration(
|
||||
assert(OffsetInBits+SizeInBits <= getSizeInBits(Var) && "pars > totum");
|
||||
|
||||
// Add the piece DWARF expression.
|
||||
Operands.push_back(llvm::dwarf::DW_OP_bit_piece);
|
||||
Operands.push_back(llvm::dwarf::DW_OP_LLVM_fragment);
|
||||
Operands.push_back(OffsetInBits);
|
||||
Operands.push_back(SizeInBits);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user