File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -250,20 +250,20 @@ PreservedAnalyses getMachineFunctionPassPreservedAnalyses();
250
250
// / `getAnalysis` or `getCachedAnalysis`.
251
251
class MFAnalysisGetter {
252
252
private:
253
- Pass *LegacyPass;
254
- MachineFunctionAnalysisManager *MFAM;
253
+ Pass *LegacyPass = nullptr ;
254
+ MachineFunctionAnalysisManager *MFAM = nullptr ;
255
255
256
256
template <typename T>
257
257
using type_of_run =
258
258
typename function_traits<decltype (&T::run)>::template arg_t <0 >;
259
259
260
260
template <typename T>
261
261
static constexpr bool IsFunctionAnalysis =
262
- std::is_same_v<Function, type_of_run<T>>;
262
+ std::is_same_v<Function & , type_of_run<T>>;
263
263
264
264
template <typename T>
265
265
static constexpr bool IsModuleAnalysis =
266
- std::is_same_v<Module, type_of_run<T>>;
266
+ std::is_same_v<Module & , type_of_run<T>>;
267
267
268
268
public:
269
269
MFAnalysisGetter (Pass *LegacyPass) : LegacyPass(LegacyPass) {}
You can’t perform that action at this time.
0 commit comments