diff --git a/hal/lib/athena/SerialHelper.cpp b/hal/lib/athena/SerialHelper.cpp index 79c6a8c16d..5361d80d52 100644 --- a/hal/lib/athena/SerialHelper.cpp +++ b/hal/lib/athena/SerialHelper.cpp @@ -110,8 +110,8 @@ void SerialHelper::SortHubPathVector() { m_sortedHubPath.clear(); m_sortedHubPath = m_unsortedHubPath; std::sort(m_sortedHubPath.begin(), m_sortedHubPath.end(), - [](llvm::SmallVectorImpl& lhs, - llvm::SmallVectorImpl& rhs) -> int { + [](const llvm::SmallVectorImpl& lhs, + const llvm::SmallVectorImpl& rhs) -> int { llvm::StringRef lhsRef(lhs.begin(), lhs.size()); llvm::StringRef rhsRef(rhs.begin(), rhs.size()); return lhsRef.compare(rhsRef);