[clang-tools-extra] r338017 - [clangd] Proof-of-concept query iterators for Dex symbol index

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 26 11:31:44 PDT 2018


Hi Jeremy,

Thank you for reporting the issue and apologies for inconvenience. There
was another bug which caused buildbots crashes, I was looking into that
before so I missed this one.

I built Clang 3.6 and Clang 3.7 locally, simply wrapping everything into
std::move didn't resolve the issue, I reverted the changes (
https://reviews.llvm.org/rL338054) and will investigate.

Thank you for reaching out,
Kirill Bobyrev

On Thu, Jul 26, 2018 at 7:16 PM Jeremy Morse <jeremy.morse.llvm at gmail.com>
wrote:

> [Resending with cfe-commits@, whoops]
>
> Hi Kirill,
>
> We believe this patch might be breaking one of the buildbots:
>
>
> http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/29719
>
> Which is complaining about the std::unique_ptr copy constructor being
> called in DexIndexTests.cpp. It seems likely that returning a unique_ptr:
>
> > std::unique_ptr<Iterator>
> > createAnd(std::vector<std::unique_ptr<Iterator>> Children) {
> >   return llvm::make_unique<AndIterator>(move(Children));
> > }
>
> And sites such as:
>
> >  auto AndEmpty = createAnd({create(L0)});
>
> Are triggering a bug in clang 3.7 and 3.8 where the move constructor isn't
> correctly inferred:
>
>     https://godbolt.org/g/Aquug4
>
> Wrapping everything in std::move will likely fix that, those two versions
> of clang are still officially supported by LLVM/Clang.
>
> --
> Thanks,
> Jeremy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180726/720ef0eb/attachment.html>


More information about the cfe-commits mailing list