Skip to content

[NFC][LLVM] Fix a couple of build warnings #116490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extern "C" void __deregister_frame(void *);
// but using the MingW runtime.
static void __register_frame(void *p) {
static bool Searched = false;
static void((*rf)(void *)) = 0;
static void (*rf)(void *) = 0;

if (!Searched) {
Searched = true;
Expand All @@ -55,7 +55,7 @@ static void __register_frame(void *p) {

static void __deregister_frame(void *p) {
static bool Searched = false;
static void((*df)(void *)) = 0;
static void (*df)(void *) = 0;

if (!Searched) {
Searched = true;
Expand Down
2 changes: 2 additions & 0 deletions llvm/lib/LTO/LTOBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,14 @@ Error Config::addSaveTemps(std::string OutputFileName, bool UseInputModulePath,
#define HANDLE_EXTENSION(Ext) \
llvm::PassPluginLibraryInfo get##Ext##PluginInfo();
#include "llvm/Support/Extension.def"
#undef HANDLE_EXTENSION

static void RegisterPassPlugins(ArrayRef<std::string> PassPlugins,
PassBuilder &PB) {
#define HANDLE_EXTENSION(Ext) \
get##Ext##PluginInfo().RegisterPassBuilderCallbacks(PB);
#include "llvm/Support/Extension.def"
#undef HANDLE_EXTENSION

// Load requested pass plugins and let them register pass builder callbacks
for (auto &PluginFN : PassPlugins) {
Expand Down
Loading