[LLVMdev] ReplaceUsesWith

Chris Lattner sabre at nondot.org
Thu Sep 26 10:40:02 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 *&)'

C++ is case sensitive.  Try replaceAllUsesWith.

-Chris

http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list