[all-commits] [llvm/llvm-project] 35e4a2: Fix MLIR gcc7 build: ambiguous overload from user ...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Fri Oct 20 12:16:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35e4a28f04209a25638a6ab7eea9760d41ea21b8
      https://github.com/llvm/llvm-project/commit/35e4a28f04209a25638a6ab7eea9760d41ea21b8
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-10-20 (Fri, 20 Oct 2023)

  Changed paths:
    M mlir/unittests/Dialect/SCF/LoopLikeSCFOpsTest.cpp

  Log Message:
  -----------
  Fix MLIR gcc7 build: ambiguous overload from user conversion

The implicit conversion from an op to a Value is not triggered for some reasons:

/LoopLikeSCFOpsTest.cpp:78:57: error: call of overloaded ‘ValueRange(mlir::arith::ConstantIndexOp)’ is ambiguous
       b.create<scf::ParallelOp>(loc, ValueRange(lb.get()), ValueRange(ub.get()),

explicitly taking the result of the op should solve it.




More information about the All-commits mailing list