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 *&)'