1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-30 20:34:21 +00:00

DebugInfo: Fix use after return found by asan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-01-24 19:55:23 +00:00
parent f3d73ff53a
commit d84e2e4d1d
2 changed files with 2 additions and 2 deletions
include/llvm/IR
lib/IR

@ -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.

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