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:
Saleem Abdulrasool
2016-12-11 18:48:30 -08:00
committed by Adrian Prantl
parent f5d72a6869
commit 27bf54328f

View File

@@ -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);
}