Unbreak the build
authorSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 7 Nov 2015 02:26:53 +0000 (02:26 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Sat, 7 Nov 2015 02:26:53 +0000 (02:26 +0000)
My code clashed with some ilist iterator changes upstream.  Fix by
adding an explicit "&*" coercion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252392 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionAttrs.cpp

index 907cede8e5c0a789e186f1a435e130b4159b868f..351809ddedec6475dc961dc0a630c5218df8f46c 100644 (file)
@@ -477,7 +477,7 @@ determinePointerReadAttrs(Argument *A,
       // to a operand bundle use, these cannot participate in the optimistic SCC
       // analysis.  Instead, we model the operand bundle uses as arguments in
       // call to a function external to the SCC.
-      if (!SCCNodes.count(std::next(F->arg_begin(), UseIndex)) ||
+      if (!SCCNodes.count(&*std::next(F->arg_begin(), UseIndex)) ||
           IsOperandBundleUse) {
 
         // The accessors used on CallSite here do the right thing for calls and