summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJie Fu <jiefu@tencent.com>2024-01-09 19:21:43 +0800
committerJie Fu <jiefu@tencent.com>2024-01-09 19:21:43 +0800
commita529b6eaf05d24518bbe0f0a5539c378252d2671 (patch)
tree2faf6ea0bc82cbaa5089e1f1c9cea91fa700083d
parentf9a1d157e5168acefaa2281ef14c3809bc6ee539 (diff)
[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.
-rw-r--r--llvm/include/llvm/CodeGen/StackProtector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/StackProtector.h b/llvm/include/llvm/CodeGen/StackProtector.h
index 91d0b0d5e304..068990f69f2e 100644
--- a/llvm/include/llvm/CodeGen/StackProtector.h
+++ b/llvm/include/llvm/CodeGen/StackProtector.h
@@ -66,7 +66,7 @@ public:
};
class SSPLayoutAnalysis : public AnalysisInfoMixin<SSPLayoutAnalysis> {
- friend class AnalysisInfoMixin<SSPLayoutAnalysis>;
+ friend struct AnalysisInfoMixin<SSPLayoutAnalysis>;
using SSPLayoutMap = SSPLayoutInfo::SSPLayoutMap;
static AnalysisKey Key;