summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-10-10 08:30:10 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-10-10 08:30:10 +0000
commit7c47b4a113047af971252da41548b2162e5dcbe3 (patch)
tree1f6d78518b2c9655a000faf3a45f2c3aac67c959 /lldb/source/Expression
parent80371c74ae63d2f260bcc75408be9c6f81e38465 (diff)
downloadbcm5719-llvm-7c47b4a113047af971252da41548b2162e5dcbe3.tar.gz
bcm5719-llvm-7c47b4a113047af971252da41548b2162e5dcbe3.zip
[lldb][NFC] Use unique_ptr in DiagnosticManager to express ownership
llvm-svn: 374289
Diffstat (limited to 'lldb/source/Expression')
-rw-r--r--lldb/source/Expression/DiagnosticManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/DiagnosticManager.cpp b/lldb/source/Expression/DiagnosticManager.cpp
index 5333e3e545b..48eba3586d3 100644
--- a/lldb/source/Expression/DiagnosticManager.cpp
+++ b/lldb/source/Expression/DiagnosticManager.cpp
@@ -47,7 +47,7 @@ static const char *StringForSeverity(DiagnosticSeverity severity) {
std::string DiagnosticManager::GetString(char separator) {
std::string ret;
- for (const Diagnostic *diagnostic : Diagnostics()) {
+ for (const auto &diagnostic : Diagnostics()) {
ret.append(StringForSeverity(diagnostic->GetSeverity()));
ret.append(diagnostic->GetMessage());
ret.push_back(separator);
OpenPOWER on IntegriCloud