diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-06-09 19:06:30 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-06-09 19:06:30 +0000 | 
| commit | 85d8b2bbe386bcfe669575d05b61482d7be07e5d (patch) | |
| tree | 1dc5e75ab222a9ead44c699eceafab7a6ca7b310 /lib/Support/Debug.cpp | |
| parent | 5a5ac124e1efaf208671f01c46edb15f29ed2a0b (diff) | |
Notes
Diffstat (limited to 'lib/Support/Debug.cpp')
| -rw-r--r-- | lib/Support/Debug.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index eb99242914c25..47751fce3fcdc 100644 --- a/lib/Support/Debug.cpp +++ b/lib/Support/Debug.cpp @@ -49,9 +49,9 @@ static ManagedStatic<std::vector<std::string>> CurrentDebugType;  bool isCurrentDebugType(const char *DebugType) {    if (CurrentDebugType->empty())      return true; -  // see if DebugType is in list. Note: do not use find() as that forces us to +  // See if DebugType is in list. Note: do not use find() as that forces us to    // unnecessarily create an std::string instance. -  for (auto d : *CurrentDebugType) { +  for (auto &d : *CurrentDebugType) {      if (d == DebugType)        return true;    }  | 
