diff options
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 4a7bc67ab58..095fcbffde3 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -1406,16 +1406,15 @@ void DIVariable::printInternal(raw_ostream &OS) const { } void DIExpression::printInternal(raw_ostream &OS) const { - for (auto E = end(), I = begin(); I != E; ++I) { - uint64_t OpCode = *I; - OS << " [" << OperationEncodingString(OpCode); - switch (OpCode) { + for (auto Op : *this) { + OS << " [" << OperationEncodingString(Op); + switch (Op) { case DW_OP_plus: { - OS << " " << I.getArg(1); + OS << " " << Op.getArg(1); break; } case DW_OP_piece: { - OS << " offset=" << I.getArg(1) << ", size=" << I.getArg(2); + OS << " offset=" << Op.getArg(1) << ", size=" << Op.getArg(2); break; } case DW_OP_deref: |