[PATCH] D65681: Add support for TinyPtrVector<PointerIntPair<...> >
Andrew Trick via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 18:59:40 PDT 2019
atrick added a comment.
This breaks the clang build in a way that I can't begin to make sense of.
/s/llvm-project/llvm/include/llvm/Support/PointerLikeTypeTraits.h:103:22: error: no member named 'isNull' in
'llvm::PointerLikeTypeTraits< ::clang::Type *>'
return NonConst::isNull(const_cast<T *>(P));
~~~~~~~~~~^
/s/llvm-project/llvm/include/llvm/ADT/PointerUnion.h:188:42: note: in instantiation of member function 'llvm::PointerLikeTypeTraits<const clang::Type
*>::isNull' requested here
return PointerLikeTypeTraits<First>::isNull(
^
/s/llvm-project/clang/include/clang/AST/Type.h:709:31: note: in instantiation of member function 'llvm::PointerUnion<const clang::Type *, const
clang::ExtQuals *>::isNull' requested here
return Value.getPointer().isNull();
^
Given that the "missing" member is defined as:
template <typename T> struct PointerLikeTypeTraits<T *> {
static inline bool isNull(T *P) { return !P; }
};
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65681/new/
https://reviews.llvm.org/D65681
More information about the llvm-commits
mailing list