[all-commits] [llvm/llvm-project] af1bb4: Fix build errors after ceb9379a9
Nathan James via All-commits
all-commits at lists.llvm.org
Wed Jan 13 04:20:14 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af1bb4bc823f823df9869d354f639ee86b83d747
https://github.com/llvm/llvm-project/commit/af1bb4bc823f823df9869d354f639ee86b83d747
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2021-01-13 (Wed, 13 Jan 2021)
Changed paths:
M llvm/include/llvm/ADT/StringExtras.h
Log Message:
-----------
Fix build errors after ceb9379a9
For some reason some builds dont like the arrow operator access. using the deref then access should fix the issue.
/home/buildbots/ppc64le-flang-mlir-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/include/llvm/ADT/iterator.h:171:34: error: taking the address of a temporary object of type 'llvm::StringRef' [-Waddress-of-temporary]
PointerT operator->() { return &static_cast<DerivedT *>(this)->operator*(); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbots/ppc64le-flang-mlir-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/include/llvm/ADT/StringExtras.h:387:13: note: in instantiation of member function 'llvm::iterator_facade_base<llvm::mapped_iterator<mlir::tblgen::TypeParameter *, (lambda at /home/buildbots/ppc64le-flang-mlir-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/mlir/tools/mlir-tblgen/TypeDefGen.cpp:414:19), llvm::StringRef>, std::random_access_iterator_tag, llvm::StringRef, long, llvm::StringRef *, llvm::StringRef &>::operator->' requested here
Len += I->size();
More information about the All-commits
mailing list