Skip to content

Commit a529b6e

Browse files
committed
[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.
1 parent f9a1d15 commit a529b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/StackProtector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SSPLayoutInfo {
6666
};
6767

6868
class SSPLayoutAnalysis : public AnalysisInfoMixin<SSPLayoutAnalysis> {
69-
friend class AnalysisInfoMixin<SSPLayoutAnalysis>;
69+
friend struct AnalysisInfoMixin<SSPLayoutAnalysis>;
7070
using SSPLayoutMap = SSPLayoutInfo::SSPLayoutMap;
7171

7272
static AnalysisKey Key;

0 commit comments

Comments
 (0)