Static analyser cppcheck says: llvm/include/llvm/CodeGen/MachineScheduler.h:810:51: performance: Function parameter 'Intervals' should be passed by const reference. [passedByValue] Source code is explicit ResourceSegments(std::list<IntervalTy> Intervals)