[all-commits] [llvm/llvm-project] a529b6: [CodeGen] Fix -Wmismatched-tags in StackProtector....

Jie Fu (傅杰) via All-commits all-commits at lists.llvm.org
Tue Jan 9 03:22:38 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a529b6eaf05d24518bbe0f0a5539c378252d2671
      https://github.com/llvm/llvm-project/commit/a529b6eaf05d24518bbe0f0a5539c378252d2671
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/StackProtector.h

  Log Message:
  -----------
  [CodeGen] Fix -Wmismatched-tags in StackProtector.h (NFC)

llvm-project/llvm/include/llvm/CodeGen/StackProtector.h:69:10:
error: class 'AnalysisInfoMixin' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Werror,-Wmismatched-tags]
   69 |   friend class AnalysisInfoMixin<SSPLayoutAnalysis>;
      |          ^
llvm-project/llvm/include/llvm/IR/PassManager.h:414:8: note: previous use is here
  414 | struct AnalysisInfoMixin : PassInfoMixin<DerivedT> {
      |        ^
llvm-project/llvm/include/llvm/CodeGen/StackProtector.h:69:10: note: did you mean struct here?
   69 |   friend class AnalysisInfoMixin<SSPLayoutAnalysis>;
      |          ^~~~~
      |          struct
1 error generated.




More information about the All-commits mailing list