reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
950 assert(ToReplace->getBasePtrIndex() == RelocatedBase->getBasePtrIndex() && 952 if (ToReplace->getBasePtrIndex() == ToReplace->getDerivedPtrIndex()) { 952 if (ToReplace->getBasePtrIndex() == ToReplace->getDerivedPtrIndex()) { 957 if (RelocatedBase->getParent() != ToReplace->getParent()) { 965 Value *Base = ToReplace->getBasePtr(); 966 auto Derived = dyn_cast<GetElementPtrInst>(ToReplace->getDerivedPtr()); 980 Builder.SetCurrentDebugLocation(ToReplace->getDebugLoc()); 1010 Replacement->takeName(ToReplace); 1014 if (Replacement->getType() != ToReplace->getType()) { 1016 Builder.CreateBitCast(Replacement, ToReplace->getType()); 1018 ToReplace->replaceAllUsesWith(ActualReplacement); 1019 ToReplace->eraseFromParent();