Displaying 2 results from an estimated 2 matches for "replacecallsit".
Did you mean:
replacecallsite
2020 May 15
2
Issues with new Attributor (replaceAllUses fails with type mismatch)
...ress is as follows:
// Eliminate the instructions *after* we visited all of them.
for (auto &CallSitePair : CallSitePairs) {
CallBase &OldCB = *CallSitePair.first;
CallBase &NewCB = *CallSitePair.second;
ModifiedFns.insert(OldCB.getFunction());
CGUpdater.replaceCallSite(OldCB, NewCB);
OldCB.replaceAllUsesWith(&NewCB); <---------------------------------------- Failing location
OldCB.eraseFromParent();
}
Failure symptom:
Assertion failed: New->getType() == getType() && "replaceAllUses of value with new value of different ty...
2020 May 15
2
Issues with new Attributor (replaceAllUses fails with type mismatch)
...iminate the instructions *after* we visited all of them.
> for (auto &CallSitePair : CallSitePairs) {
> CallBase &OldCB = *CallSitePair.first;
> CallBase &NewCB = *CallSitePair.second;
> ModifiedFns.insert(OldCB.getFunction());
> CGUpdater.replaceCallSite(OldCB, NewCB);
> OldCB.replaceAllUsesWith(&NewCB); <---------------------------------------- Failing location
> OldCB.eraseFromParent();
> }
>
> Failure symptom:
> Assertion failed: New->getType() == getType() && "replaceAllUses of valu...