void PropagateJuliaAddrspaces::visitStoreInst(StoreInst &SI) { unsigned AS = SI.getPointerAddressSpace(); if (!isSpecialAS(AS)) return; Value *Replacement = LiftPointer(SI.getPointerOperand(), SI.getValueOperand()->getType(), &SI); if (!Replacement) return; SI.setOperand(StoreInst::getPointerOperandIndex(), Replacement); }