[llvm] fixed lld-link: error: duplicate symbol: public: __cdecl llvm::Predic… (PR #169970)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 30 08:52:29 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- llvm/utils/TableGen/Common/CodeGenSchedule.cpp llvm/utils/TableGen/Common/CodeGenSchedule.h llvm/utils/TableGen/Common/PredicateExpander.cpp --diff_from_common_commit
``````````

: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 clang-format here.
</summary>

``````````diff
diff --git a/llvm/utils/TableGen/Common/CodeGenSchedule.h b/llvm/utils/TableGen/Common/CodeGenSchedule.h
index 3f8912f6f..70effffe6 100644
--- a/llvm/utils/TableGen/Common/CodeGenSchedule.h
+++ b/llvm/utils/TableGen/Common/CodeGenSchedule.h
@@ -334,7 +334,8 @@ struct SchedulePredicateInfo {
   llvm::APInt ProcModelMask; // A set of processor model indices.
   llvm::APInt OperandMask;   // An operand mask.
   const Record *Predicate;   // MCInstrPredicate definition.
-  SchedulePredicateInfo(llvm::APInt CpuMask, llvm::APInt Operands, const Record *Pred)
+  SchedulePredicateInfo(llvm::APInt CpuMask, llvm::APInt Operands,
+                        const Record *Pred)
       : ProcModelMask(CpuMask), OperandMask(Operands), Predicate(Pred) {}
 
   bool operator==(const SchedulePredicateInfo &Other) const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/169970


More information about the llvm-commits mailing list