diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-01-24 19:55:23 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-01-24 19:55:23 +0000 |
commit | 4d50b6c306836c5bbf34f4f66f42d3a950b7fe4f (patch) | |
tree | 19f57a2dad7f1892049eace59b5195633c385c81 /llvm/lib/IR/DebugInfo.cpp | |
parent | 069ff67b1ac7df33f1eb2d152a31892d27aa3726 (diff) | |
download | bcm5719-llvm-4d50b6c306836c5bbf34f4f66f42d3a950b7fe4f.tar.gz bcm5719-llvm-4d50b6c306836c5bbf34f4f66f42d3a950b7fe4f.zip |
DebugInfo: Fix use after return found by asan.
llvm-svn: 227012
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 9b5a9c3da47..88f7e33b7dc 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -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); } |