This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix build breakage due to 5c5af910fefbea943a11452b63e2424e5f823470
ClosedPublic

Authored by bondhugula on Aug 10 2022, 5:28 PM.

Details

Summary

Fix build breakage due to 5c5af910fefbea943a11452b63e2424e5f823470.

commit 5c5af910fefbea943a11452b63e2424e5f823470
Author: Jeff Niu <jeff@modular.com>
Date:   Tue Aug 9 22:07:35 2022 -0400

    [mlir][LLVMIR] "Modernize" Insert/ExtractValueOp

results in

lib/Conversion/LLVMCommon/MemRefBuilder.cpp:170:70: error: call of overloaded ‘makeArrayRef<int64_t>(<brace-enclosed initializer list>)’ is ambiguous
       llvm::makeArrayRef<int64_t>({kStridePosInMemRefDescriptor,
       pos}));

llvm/include/llvm/ADT/ArrayRef.h:505:15: note: candidate: ‘llvm::ArrayRef<T> llvm::makeArrayRef(const std::vector<T>&) [with T = long int]’
   ArrayRef<T> makeArrayRef(const std::vector<T> &Vec) {
               ^~~~~~~~~~~~
llvm/include/llvm/ADT/ArrayRef.h:516:37: note: candidate: ‘llvm::ArrayRef<T> llvm::makeArrayRef(const llvm::ArrayRef<T>&) [with T = long int]’
   template <typename T> ArrayRef<T> makeArrayRef(const ArrayRef<T> &Vec) {
                                                                      ^

Diff Detail

Event Timeline

bondhugula created this revision.Aug 10 2022, 5:28 PM
bondhugula requested review of this revision.Aug 10 2022, 5:28 PM
Mogball accepted this revision.Aug 10 2022, 5:29 PM
This revision is now accepted and ready to land.Aug 10 2022, 5:29 PM
This revision was landed with ongoing or failed builds.Aug 10 2022, 5:32 PM
This revision was automatically updated to reflect the committed changes.