[NFC][LLVM] Change initialize<PassName>PassOnce to return void (#134500)

- The return value of these functions (called using `llvm::call_once`)
is never used, so make these functions return void.
This commit is contained in:
Rahul Joshi 2025-04-07 18:10:06 -07:00 committed by GitHub
parent 20eb60d3f2
commit bb1f32ded0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ namespace llvm {
class Pass;
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis) \
static void *initialize##passName##PassOnce(PassRegistry &Registry) {
static void initialize##passName##PassOnce(PassRegistry &Registry) {
#define INITIALIZE_PASS_DEPENDENCY(depName) initialize##depName##Pass(Registry);
@ -45,7 +45,6 @@ class Pass;
name, arg, &passName::ID, \
PassInfo::NormalCtor_t(callDefaultCtor<passName>), cfg, analysis); \
Registry.registerPass(*PI, true); \
return PI; \
} \
static llvm::once_flag Initialize##passName##PassFlag; \
void llvm::initialize##passName##Pass(PassRegistry &Registry) { \