[polly] 67acc77 - [NFC] Fix build failure in ScopDetection

Christopher Tetreault via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 09:36:30 PDT 2021


Author: Christopher Tetreault
Date: 2021-10-04T09:19:27-07:00
New Revision: 67acc772d0945e8e30cf31a2ce1173e9c564708f

URL: https://github.com/llvm/llvm-project/commit/67acc772d0945e8e30cf31a2ce1173e9c564708f
DIFF: https://github.com/llvm/llvm-project/commit/67acc772d0945e8e30cf31a2ce1173e9c564708f.diff

LOG: [NFC] Fix build failure in ScopDetection

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.

Added: 
    

Modified: 
    polly/lib/Analysis/ScopDetection.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index aab87415eb891..4dfcf34c5df74 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -1469,7 +1469,7 @@ bool ScopDetection::isErrorBlock(llvm::BasicBlock &BB, const llvm::Region &R) {
   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();
 


        


More information about the llvm-commits mailing list