HomePhabricator

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

Authored by aganea on Feb 21 2020, 7:05 AM.

Description

[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.

Details

Committed
aganeaFeb 21 2020, 7:06 AM
Parents
rGf0c642e82274: Remove unused functions in llvm-ml
Branches
Unknown
Tags
Unknown