[PATCH] D145032: [Codegen][NFC] Replace 'RegisterRegAlloc::FunctionPassCtor' with 'RegisterRegAllocBase<T>::FunctionPassCtor' .
WangLian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 23:10:14 PST 2023
Jimerlife created this revision.
Jimerlife added reviewers: arsenm, RKSimon.
Jimerlife added a project: LLVM.
Herald added subscribers: qcolombet, MatzeB.
Herald added a project: All.
Jimerlife requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan, wdng.
Use `RegisterRegAllocBase<T>::FunctionPassCtor` to construct `RegisterRegAllocBase<T>::Registry` maybe more proper.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145032
Files:
llvm/include/llvm/CodeGen/RegAllocRegistry.h
Index: llvm/include/llvm/CodeGen/RegAllocRegistry.h
===================================================================
--- llvm/include/llvm/CodeGen/RegAllocRegistry.h
+++ llvm/include/llvm/CodeGen/RegAllocRegistry.h
@@ -66,7 +66,7 @@
/// RegisterRegAlloc's global Registry tracks allocator registration.
template <class T>
-MachinePassRegistry<RegisterRegAlloc::FunctionPassCtor>
+MachinePassRegistry<typename RegisterRegAllocBase<T>::FunctionPassCtor>
RegisterRegAllocBase<T>::Registry;
} // end namespace llvm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145032.501379.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/34daaf0f/attachment.bin>
More information about the llvm-commits
mailing list