[PATCH] D110894: [NFC] Fix build failure in ScopDetection

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 30 16:50:23 PDT 2021


ctetreau added a comment.

The old code works for me with visual studio 2019, but fails with clang 7 and clang 12.1.

  [redacted]/polly/lib/Analysis/ScopDetection.cpp:1472:29: error: no matching member function for call to 'insert'
    auto It = ErrorBlockCache.insert({{&BB, &R}, false});
              ~~~~~~~~~~~~~~~~^~~~~~
  [redacted]/llvm/include/llvm/ADT/DenseMap.h:207:29: note: candidate function not viable: cannot convert initializer list argument to 'const std::pair<tuple<const BasicBlock *, const Region *>, bool>'
    std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
                              ^
  [redacted]/llvm/include/llvm/ADT/DenseMap.h:214:29: note: candidate function not viable: cannot convert initializer list argument to 'std::pair<tuple<const BasicBlock *, const Region *>, bool>'
    std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> &&KV) {
                              ^
  [redacted]/llvm/include/llvm/ADT/DenseMap.h:297:8: note: candidate function template not viable: requires 2 arguments, but 1 was provided
    void insert(InputIt I, InputIt E) {
         ^


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110894/new/

https://reviews.llvm.org/D110894



More information about the llvm-commits mailing list