[polly] r239133 - Avoid the use of std::map emplace

Tobias Grosser tobias at grosser.es
Thu Jun 4 22:52:16 PDT 2015


Author: grosser
Date: Fri Jun  5 00:52:15 2015
New Revision: 239133

URL: http://llvm.org/viewvc/llvm-project?rev=239133&view=rev
Log:
Avoid the use of std::map emplace

This functionality does not yet seem to exist on all buildbots.

Modified:
    polly/trunk/lib/Analysis/ScopDetection.cpp

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=239133&r1=239132&r2=239133&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Fri Jun  5 00:52:15 2015
@@ -527,9 +527,7 @@ bool ScopDetection::hasAffineMemoryAcces
       const Instruction *Insn = Pair.first;
       const SCEVAddRecExpr *AF = dyn_cast<SCEVAddRecExpr>(Pair.second);
       bool IsNonAffine = false;
-      TempMemoryAccesses.emplace(std::piecewise_construct,
-                                 std::forward_as_tuple(Insn),
-                                 std::forward_as_tuple(Insn, Shape));
+      TempMemoryAccesses.insert(std::make_pair(Insn, MemAcc(Insn, Shape)));
       MemAcc *Acc = &TempMemoryAccesses.find(Insn)->second;
 
       if (!AF) {





More information about the llvm-commits mailing list