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:
parent
f3d73ff53a
commit
d84e2e4d1d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user