[all-commits] [llvm/llvm-project] 1a8ff8: [IR] Use a reference in a range-based for

mordante via All-commits all-commits at lists.llvm.org
Tue Dec 17 12:59:15 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a8ff89653d2a80a013701fe927d2d32491bff59
      https://github.com/llvm/llvm-project/commit/1a8ff89653d2a80a013701fe927d2d32491bff59
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-12-17 (Tue, 17 Dec 2019)

  Changed paths:
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/IR/ModuleSummaryIndex.cpp

  Log Message:
  -----------
  [IR] Use a reference in a range-based for

This avoids unneeded copies when using a range-based for loops.

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.

Differential Revision: https://reviews.llvm.org/D70870




More information about the All-commits mailing list