File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -364,25 +364,6 @@ class OpLowerer {
364364 return lowerToBindAndAnnotateHandle (F);
365365 }
366366
367- Error replaceAggregateTypeOfCallUsages (CallInst *Intrin, CallInst *Op) {
368- for (Use &U : make_early_inc_range (Intrin->uses ())) {
369- if (auto *EVI = dyn_cast<ExtractValueInst>(U.getUser ())) {
370- EVI->setOperand (0 , Op);
371- } else if (auto *IVI = dyn_cast<InsertValueInst>(U.getUser ())) {
372- IVI->setOperand (0 , Op);
373- } else {
374- return make_error<StringError>(
375- (Intrin->getCalledFunction ()->getName () +
376- " use is not a ExtractValueInst or InsertValueInst" ),
377- inconvertibleErrorCode ());
378- }
379- }
380-
381- Intrin->eraseFromParent ();
382-
383- return Error::success ();
384- }
385-
386367 // / Replace uses of \c Intrin with the values in the `dx.ResRet` of \c Op.
387368 // / Since we expect to be post-scalarization, make an effort to avoid vectors.
388369 Error replaceResRetUses (CallInst *Intrin, CallInst *Op, bool HasCheckBit) {
You can’t perform that action at this time.
0 commit comments