summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/DebugInfo.h2
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/DebugInfo.h b/llvm/include/llvm/IR/DebugInfo.h
index 539025f0df2..1aec146c579 100644
--- a/llvm/include/llvm/IR/DebugInfo.h
+++ b/llvm/include/llvm/IR/DebugInfo.h
@@ -886,7 +886,7 @@ public:
/// \brief Returns underlying DIHeaderFieldIterator.
const DIHeaderFieldIterator &getBase() const { return I; }
/// \brief Returns the next operand.
- const Operand &getNext() const;
+ Operand getNext() const;
};
/// \brief An iterator for DIExpression elements.
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 9b5a9c3da47..88f7e33b7dc 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -170,7 +170,7 @@ DIExpression::iterator DIExpression::end() const {
return DIExpression::iterator();
}
-const DIExpression::Operand &DIExpression::Operand::getNext() const {
+DIExpression::Operand DIExpression::Operand::getNext() const {
iterator it(I);
return *(++it);
}
OpenPOWER on IntegriCloud