[llvm] b8dcf53 - [llvm] add missing #include of Compiler.h (#141780)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 09:40:12 PDT 2025
Author: Andrew Rogers
Date: 2025-05-28T09:40:09-07:00
New Revision: b8dcf53dc636239b82e2524d1cffc2c46ace751a
URL: https://github.com/llvm/llvm-project/commit/b8dcf53dc636239b82e2524d1cffc2c46ace751a
DIFF: https://github.com/llvm/llvm-project/commit/b8dcf53dc636239b82e2524d1cffc2c46ace751a.diff
LOG: [llvm] add missing #include of Compiler.h (#141780)
Fixes a build break introduced in #136623. There were two files updated
to reference the `LLVM_ABI` macro that were not updated to `#include
"llvm/Support/Compiler.h"`
Failing build log
[here](https://green.lab.llvm.org/job/llvm.org/job/clang-stage2-Rthinlto/794/consoleFull#-471199310f80d942a-f672-4696-b0d9-c66cae8aa9dd)
Added:
Modified:
llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h
llvm/include/llvm/Analysis/Passes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h b/llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h
index 972ddd727d0ce..86f3db236ac2c 100644
--- a/llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h
+++ b/llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h
@@ -19,6 +19,7 @@
#include "llvm/ADT/DenseMap.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/IR/InstVisitor.h"
+#include "llvm/Support/Compiler.h"
// This class is used to get an estimate of the optimization effects that we
// could get from complete loop unrolling. It comes from the fact that some
diff --git a/llvm/include/llvm/Analysis/Passes.h b/llvm/include/llvm/Analysis/Passes.h
index 52b798c4d2607..e1895db5653f6 100644
--- a/llvm/include/llvm/Analysis/Passes.h
+++ b/llvm/include/llvm/Analysis/Passes.h
@@ -14,6 +14,8 @@
#ifndef LLVM_ANALYSIS_PASSES_H
#define LLVM_ANALYSIS_PASSES_H
+#include "llvm/Support/Compiler.h"
+
namespace llvm {
class FunctionPass;
class ImmutablePass;
More information about the llvm-commits
mailing list