[llvm] [ProfileData] Use a range-based for loop (NFC) (PR #94856)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 8 12:50:59 PDT 2024


================
@@ -145,11 +145,11 @@ readBinaryIdsInternal(const MemoryBuffer &DataBuffer,
 
 static void
 printBinaryIdsInternal(raw_ostream &OS,
-                       std::vector<llvm::object::BuildID> &BinaryIds) {
+                       const std::vector<llvm::object::BuildID> &BinaryIds) {
----------------
ellishg wrote:

It's not too important, but an ArrayRef is preferred over a constant reference to a vector. 

https://github.com/llvm/llvm-project/pull/94856


More information about the llvm-commits mailing list