Value *Addr = IRB.CreatePointerCast(OrigPtr, PtrTy);
Value *CmpOperand = IRB.CreatePointerCast(parameters[1], PtrTy);
Value *NewOperand = IRB.CreateBitOrPointerCast(parameters[2], Ty);
Value *Addr = IRB.CreatePointerCast(OrigPtr, PtrTy);
Value *CmpOperand = IRB.CreatePointerCast(parameters[1], PtrTy);
Value *NewOperand = IRB.CreateBitOrPointerCast(parameters[2], Ty);