File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,8 @@ extern char &AMDGPURewriteUndefForPHILegacyPassID;
293
293
294
294
class AMDGPURewriteUndefForPHIPass
295
295
: public PassInfoMixin<AMDGPURewriteUndefForPHIPass> {
296
- private:
297
- TargetMachine &TM;
298
-
299
296
public:
300
- AMDGPURewriteUndefForPHIPass (TargetMachine &TM) : TM(TM){} ;
297
+ AMDGPURewriteUndefForPHIPass () = default ;
301
298
PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM);
302
299
};
303
300
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
664
664
return true ;
665
665
}
666
666
if (PassName == " amdgpu-rewrite-undef-for-phi" ) {
667
- PM.addPass (AMDGPURewriteUndefForPHIPass (* this ));
667
+ PM.addPass (AMDGPURewriteUndefForPHIPass ());
668
668
return true ;
669
669
}
670
670
return false ;
You can’t perform that action at this time.
0 commit comments