Skip to content

Commit f1b34e0

Browse files
egorzhdanbnbarham
authored andcommitted
[cxx-interop] Workaround a Swift compiler bug
``` <unknown>:0: error: calling a private constructor of class 'clang::StmtIterator' swift/llvm-project/clang/include/clang/AST/StmtIterator.h:137:3: note: declared private here StmtIterator(const StmtIteratorBase &RHS) ^ ``` rdar://113514872 (cherry picked from commit f7b421f)
1 parent e5978fe commit f1b34e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/StmtIterator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ struct StmtIterator : public StmtIteratorImpl<StmtIterator, Stmt*&> {
133133
StmtIterator(const VariableArrayType *t)
134134
: StmtIteratorImpl<StmtIterator, Stmt*&>(t) {}
135135

136-
private:
137136
StmtIterator(const StmtIteratorBase &RHS)
138137
: StmtIteratorImpl<StmtIterator, Stmt *&>(RHS) {}
139138

139+
private:
140140
inline friend StmtIterator
141141
cast_away_const(const ConstStmtIterator &RHS);
142142
};

0 commit comments

Comments
 (0)