Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
In file included from /var/tmp/portage/media-libs/mesa-17.2.3/work/mesa-17.2.3/src/gallium/state_trackers/clover/llvm/invocation.cpp:52:
/var/tmp/portage/media-libs/mesa-17.2.3/work/mesa-17.2.3/src/gallium/state_trackers/clover/llvm/metadata.hpp:45:23: error: no matching constructor for initialization of 'std::vector<const ::llvm::MDNode *>'
return { n->op_begin(), n->op_end() };
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/vector:495:5: note: candidate constructor not viable: no known conversion from 'llvm::NamedMDNode::const_op_iterator' (aka 'op_iterator_impl<const llvm::MDNode *, llvm::MDNode>') to 'std::__1::vector<const llvm::MDNode *, std::__1::allocator<const llvm::MDNode *> >::size_type' (aka 'unsigned long') for 1st argument
vector(size_type __n, const_reference __x);
^
/usr/include/c++/v1/vector:535:5: note: candidate constructor not viable: no known conversion from 'llvm::NamedMDNode::const_op_iterator' (aka 'op_iterator_impl<const llvm::MDNode *, llvm::MDNode>') to 'const std::__1::vector<const llvm::MDNode *, std::__1::allocator<const llvm::MDNode *> >' for 1st argument
vector(const vector& __x, const allocator_type& __a);
^
/usr/include/c++/v1/vector:544:5: note: candidate constructor not viable: no known conversion from 'llvm::NamedMDNode::const_op_iterator' (aka 'op_iterator_impl<const llvm::MDNode *, llvm::MDNode>') to 'initializer_list<std::__1::vector<const llvm::MDNode *, std::__1::allocator<const llvm::MDNode *> >::value_type>' (aka 'initializer_list<const llvm::MDNode *>') for 1st argument
vector(initializer_list<value_type> __il, const allocator_type& __a);
^
/usr/include/c++/v1/vector:555:5: note: candidate constructor not viable: no known conversion from 'llvm::NamedMDNode::const_op_iterator' (aka 'op_iterator_impl<const llvm::MDNode *, llvm::MDNode>') to 'std::__1::vector<const llvm::MDNode *, std::__1::allocator<const llvm::MDNode *> >' for 1st argument
vector(vector&& __x, const allocator_type& __a);
^
/usr/include/c++/v1/vector:498:9: note: candidate template ignored: requirement '!__is_forward_iterator<op_iterator_impl<const MDNode *, MDNode> >::value' was not satisfied [with _InputIterator = llvm::NamedMDNode::op_iterator_impl<const llvm::MDNode *, llvm::MDNode>]
vector(_InputIterator __first,
^
/usr/include/c++/v1/vector:513:9: note: candidate template ignored: requirement 'is_constructible<value_type, typename iterator_traits<op_iterator_impl<const MDNode *, MDNode> >::reference>::value' was not satisfied [with _ForwardIterator = llvm::NamedMDNode::op_iterator_impl<const llvm::MDNode *, llvm::MDNode>]
vector(_ForwardIterator __first,
^
/usr/include/c++/v1/vector:506:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a,
^
/usr/include/c++/v1/vector:520:9: note: candidate constructor template not viable: requires at least 3 arguments, but 2 were provided
vector(_ForwardIterator __first, _ForwardIterator __last, const allocator_type& __a,
^
/usr/include/c++/v1/vector:479:40: note: candidate constructor not viable: requires single argument '__a', but 2 arguments were provided
_LIBCPP_INLINE_VISIBILITY explicit vector(const allocator_type& __a)
^
/usr/include/c++/v1/vector:491:14: note: candidate constructor not viable: requires single argument '__n', but 2 arguments were provided
explicit vector(size_type __n);
^
/usr/include/c++/v1/vector:534:5: note: candidate constructor not viable: requires single argument '__x', but 2 arguments were provided
vector(const vector& __x);
^
/usr/include/c++/v1/vector:541:5: note: candidate constructor not viable: requires single argument '__il', but 2 arguments were provided
vector(initializer_list<value_type> __il);
^
/usr/include/c++/v1/vector:547:5: note: candidate constructor not viable: requires single argument '__x', but 2 arguments were provided
vector(vector&& __x)
^
/usr/include/c++/v1/vector:496:5: note: candidate constructor not viable: requires 3 arguments, but 2 were provided
vector(size_type __n, const_reference __x, const allocator_type& __a);
^
/usr/include/c++/v1/vector:473:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
vector() _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
^
/var/tmp/portage/media-libs/mesa-17.2.3/work/mesa-17.2.3/src/gallium/state_trackers/clover/llvm/invocation.cpp:266:14: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
return std::move(mod);
^
/var/tmp/portage/media-libs/mesa-17.2.3/work/mesa-17.2.3/src/gallium/state_trackers/clover/llvm/invocation.cpp:266:14: note: remove std::move call here
return std::move(mod);
^~~~~~~~~~ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.