[all-commits] [llvm/llvm-project] 512580: [mlir] Silence error: call to constructor of 'llvm...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Fri Feb 21 07:06:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5125803d344b848cdfc9441edfcc36dc8e488407
      https://github.com/llvm/llvm-project/commit/5125803d344b848cdfc9441edfcc36dc8e488407
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2020-02-21 (Fri, 21 Feb 2020)

  Changed paths:
    M mlir/lib/IR/Builders.cpp

  Log Message:
  -----------
  [mlir] Silence error: call to constructor of 'llvm::APInt' is ambiguous

I was getting this error when using Clang 9.0.1 for compiling.

F:\llvm-project\mlir\lib\IR\Builders.cpp(119,27): error: call to constructor of 'llvm::APInt' is ambiguous
                          APInt(32, value, /*isSigned=*/false));
                          ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\llvm-project\llvm\include\llvm/ADT/APInt.h(277,3): note: candidate constructor
  APInt(unsigned numBits, uint64_t val, bool isSigned = false)
  ^
F:\llvm-project\llvm\include\llvm/ADT/APInt.h(304,3): note: candidate constructor
  APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]);
  ^
1 error generated.




More information about the All-commits mailing list