summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-01-24 19:55:23 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-01-24 19:55:23 +0000
commit4d50b6c306836c5bbf34f4f66f42d3a950b7fe4f (patch)
tree19f57a2dad7f1892049eace59b5195633c385c81 /llvm/lib/IR/DebugInfo.cpp
parent069ff67b1ac7df33f1eb2d152a31892d27aa3726 (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud