<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The predecrement / decrement operators *do* exist on this iterator: <a href="https://github.com/llvm-mirror/llvm/blob/master/include/llvm/ADT/ilist_iterator.h#L153" rel="noreferrer" target="_blank">https://github.com/llvm-mirror<wbr>/llvm/blob/master/include/<wbr>llvm/ADT/ilist_iterator.h#L153</a><br>
<br>
Maybe you meant:<br>
<br>
  llvm::Function *f;<br>
  foo(&*--f->arg_end());<br>
<br>
?<br></blockquote><div><br></div><div>Correct, I mean exactly this. Though &* is not important in this case.</div><div><br></div><div>This code doesn't work anymore, as arg_iterator is defined differently now: <a href="https://github.com/llvm-mirror/llvm/blob/master/include/llvm/IR/Function.h#L57">https://github.com/llvm-mirror/llvm/blob/master/include/llvm/IR/Function.h#L57</a></div><div><br></div><div>I get an error when I'm using pre-decrement operator:</div><div><div>error: expression is not assignable</div><div>      --f->arg_end();</div></div><div><br></div><div>Dmitry.</div><div><br></div></div></div></div>