mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +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:
@@ -886,7 +886,7 @@ public:
|
|||||||
/// \brief Returns underlying DIHeaderFieldIterator.
|
/// \brief Returns underlying DIHeaderFieldIterator.
|
||||||
const DIHeaderFieldIterator &getBase() const { return I; }
|
const DIHeaderFieldIterator &getBase() const { return I; }
|
||||||
/// \brief Returns the next operand.
|
/// \brief Returns the next operand.
|
||||||
const Operand &getNext() const;
|
Operand getNext() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \brief An iterator for DIExpression elements.
|
/// \brief An iterator for DIExpression elements.
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ DIExpression::iterator DIExpression::end() const {
|
|||||||
return DIExpression::iterator();
|
return DIExpression::iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
const DIExpression::Operand &DIExpression::Operand::getNext() const {
|
DIExpression::Operand DIExpression::Operand::getNext() const {
|
||||||
iterator it(I);
|
iterator it(I);
|
||||||
return *(++it);
|
return *(++it);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user