mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
DebugInfo: Fix use after return found by asan.
llvm-svn: 227012
This commit is contained in:
parent
6cfd06626c
commit
615490c812
@ -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
Block a user