[all-commits] [llvm/llvm-project] ffde3a: [ShapeDialect] Silence a build warning, NFC

Chris Lattner via All-commits all-commits at lists.llvm.org
Sun Mar 21 10:11:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffde3acb1b9c0f88f99bda82fd080de2d44ef50b
      https://github.com/llvm/llvm-project/commit/ffde3acb1b9c0f88f99bda82fd080de2d44ef50b
  Author: Chris Lattner <clattner at nondot.org>
  Date:   2021-03-21 (Sun, 21 Mar 2021)

  Changed paths:
    M mlir/lib/Dialect/Shape/IR/Shape.cpp

  Log Message:
  -----------
  [ShapeDialect] Silence a build warning, NFC

mlir/lib/Dialect/Shape/IR/Shape.cpp:573:26: warning: loop variable 'shape' is always a copy because the range of type '::mlir::Operation::operand_range' (aka 'mlir::OperandRange') does not return a reference [-Wrange-loop-analysis]
        for (const auto &shape : shapes()) {
                         ^




More information about the All-commits mailing list