[llvm-dev] Question about an error we're now starting to get on LLVM 3.8.0rc2since

Caldarale, Charles R via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 9 20:43:58 PST 2016


> From: dexonsmith at apple.com [mailto:dexonsmith at apple.com] 
> Subject: Re: Question about an error we're now starting to get on LLVM 3.8.0rc2since
 
> > Debug/../dt_llvm.cpp:1772:17: error: cannot convert âllvm::ilist_iterator<llvm::Argument>â 
> > to âllvm::Value*â in assignment
> >              pDS = argIt;
> >                  ^

> You probably want `pDS = &*argIt`, which makes the conversion from a
> possibly-not-dereferenceable-iterator to a pointer explicit.

Now that you point out the proper construct, it becomes obvious.  Thanks very much.

 - Chuck



More information about the llvm-dev mailing list