[llvm] [llvm] add missing #include of Compiler.h (PR #141780)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 07:44:33 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: Andrew Rogers (andrurogerz)
<details>
<summary>Changes</summary>
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: https://green.lab.llvm.org/job/llvm.org/job/clang-stage2-Rthinlto/794/consoleFull#-471199310f80d942a-f672-4696-b0d9-c66cae8aa9dd
---
Full diff: https://github.com/llvm/llvm-project/pull/141780.diff
2 Files Affected:
- (modified) llvm/include/llvm/Analysis/LoopUnrollAnalyzer.h (+1)
- (modified) llvm/include/llvm/Analysis/Passes.h (+2)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/141780
More information about the llvm-commits
mailing list