summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-11-07 02:26:53 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-11-07 02:26:53 +0000
commit76dd243f99ce814f1f5d2da9cb936db7dc6e90da (patch)
treefdf13a9a80014751369a04908f7a686870b85c55 /llvm/lib
parent6e8fbc6f39c97d8e43b80d345913db418715179f (diff)
downloadbcm5719-llvm-76dd243f99ce814f1f5d2da9cb936db7dc6e90da.tar.gz
bcm5719-llvm-76dd243f99ce814f1f5d2da9cb936db7dc6e90da.zip
Unbreak the build
My code clashed with some ilist iterator changes upstream. Fix by adding an explicit "&*" coercion. llvm-svn: 252392
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 907cede8e5c..351809ddede 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -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
OpenPOWER on IntegriCloud