github-actions[bot] wrote:
<!--LLVM IDS CHECK COMMENT-->
:warning: LLVM ABI annotation checker, ids-check found issues in your code.
:warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git diff origin/main HEAD -- 'llvm/include/llvm/**/*.h'
'llvm/include/llvm-c/**/*.h' 'llvm/include/llvm/Demangle/**/*.h'
Then run idt on the changed files with appropriate --export-macro and
--include-header flags.
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from ids-check here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Transforms/CFGuard.h
b/llvm/include/llvm/Transforms/CFGuard.h
index 6af0f351b..d2d47a558 100644
--- a/llvm/include/llvm/Transforms/CFGuard.h
+++ b/llvm/include/llvm/Transforms/CFGuard.h
@@ -11,6 +11,7 @@
#ifndef LLVM_TRANSFORMS_CFGUARD_H
#define LLVM_TRANSFORMS_CFGUARD_H
+#include "llvm/Support/Compiler.h"
#include "llvm/IR/PassManager.h"
namespace llvm {
@@ -23,16 +24,16 @@ public:
enum class Mechanism { Check, Dispatch };
CFGuardPass(Mechanism M = Mechanism::Check) : GuardMechanism(M) {}
- PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM);
+ LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &FAM);
private:
Mechanism GuardMechanism;
};
/// Insert Control Flow Guard checks on indirect function calls.
-FunctionPass *createCFGuardPass();
+LLVM_ABI FunctionPass *createCFGuardPass();
-bool isCFGuardFunction(const GlobalValue *GV);
+LLVM_ABI bool isCFGuardFunction(const GlobalValue *GV);
} // namespace llvm
``````````
</details>
https://github.com/llvm/llvm-project/pull/176276
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits