DebugInfo: Fix use after return found by asan.
llvm-svn: 227012
This commit is contained in:
parent
069ff67b1a
commit
4d50b6c306
|
@ -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…
Reference in New Issue