[LLVMdev] ReplaceUsesWith

xli3 at uiuc.edu xli3 at uiuc.edu
Thu Sep 26 10:39:01 PDT 2002


When I try to do this:
  GetElementPtrInst *newIns = new GetElementPtrInst( ... );
  OldIns->ReplaceAllUsesWith( newIns );
 
When I compile the code, it always says, no matching function
for call to `GetElementPtrInst::ReplaceAllUsesWith
(GetElementPtrInst *&)' 

But since GetElementPtrInst is a subclass of Value, why cannot
use this way? What's wrong here?

thanks,
xiaodong



More information about the llvm-dev mailing list