[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:47:02 PDT 2021
ctetreau created this revision.
Herald added a reviewer: bollu.
ctetreau requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
In some build environments, the C++ compiler is unable to infer the
correct type for the DenseMap::insert in isErrorBlock. Typing out
std::make_pair helps.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110894
Files:
polly/lib/Analysis/ScopDetection.cpp
Index: polly/lib/Analysis/ScopDetection.cpp
===================================================================
--- polly/lib/Analysis/ScopDetection.cpp
+++ polly/lib/Analysis/ScopDetection.cpp
@@ -1469,7 +1469,7 @@
if (!PollyAllowErrorBlocks)
return false;
- auto It = ErrorBlockCache.insert({{&BB, &R}, false});
+ auto It = ErrorBlockCache.insert({std::make_pair(&BB, &R), false});
if (!It.second)
return It.first->getSecond();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110894.376397.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/7b872c31/attachment.bin>
More information about the llvm-commits
mailing list