[PATCH] D72957: [mlir] Unbreak MSVC build with implicit constructor
Stella Stamenova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 19:16:41 PST 2020
stella.stamenova added a comment.
With the latest VS 2019, the error is still the same (MSVC 19.24).
With the latest patch, the error is slightly different, but essentially the same problem:
##[error]mlir\include\mlir\IR\Attributes.h(235,0): Error C2440: '<function-style-cast>': cannot convert from 'mlir::ArrayAttr::iterator' to 'mlir::ArrayAttr::attr_value_iterator<mlir::IntegerAttr>'
304>E:\agent\_work\5\s\mlir\include\mlir/IR/Attributes.h(235): error C2440: '<function-style-cast>': cannot convert from 'mlir::ArrayAttr::iterator' to 'mlir::ArrayAttr::attr_value_iterator<mlir::IntegerAttr>' [E:\agent\_work\5\b\tools\mlir\lib\Conversion\VectorToLLVM\MLIRVectorToLLVM.vcxproj]
E:\agent\_work\5\s\mlir\include\mlir/IR/Attributes.h(235): note: No constructor could take the source type, or constructor overload resolution was ambiguous
E:\agent\_work\5\s\mlir\lib\Conversion\VectorToLLVM\ConvertVectorToLLVM.cpp(119): note: see reference to function template instantiation 'llvm::iterator_range<mlir::ArrayAttr::attr_value_iterator<mlir::IntegerAttr>> mlir::ArrayAttr::getAsRange<mlir::IntegerAttr>(void)' being compiled
##[error]mlir\include\mlir\IR\Attributes.h(236,0): Error C2440: '<function-style-cast>': cannot convert from 'mlir::ArrayAttr::iterator' to 'mlir::ArrayAttr::attr_value_iterator<mlir::IntegerAttr>'
304>E:\agent\_work\5\s\mlir\include\mlir/IR/Attributes.h(236): error C2440: '<function-style-cast>': cannot convert from 'mlir::ArrayAttr::iterator' to 'mlir::ArrayAttr::attr_value_iterator<mlir::IntegerAttr>' [E:\agent\_work\5\b\tools\mlir\lib\Conversion\VectorToLLVM\MLIRVectorToLLVM.vcxproj]
E:\agent\_work\5\s\mlir\include\mlir/IR/Attributes.h(236): note: No constructor could take the source type, or constructor overload resolution was ambiguous
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72957/new/
https://reviews.llvm.org/D72957
More information about the llvm-commits
mailing list