Skip to content

Commit e5472ad

Browse files
committed
[Parse] Unguard Parser.IsForASTGen for SWIFT_BUILD_SWIFT_SYNTAX
Changing a field depending on `-D` was not a good idea.
1 parent 79ac431 commit e5472ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/swift/Parse/Parser.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ class Parser {
159159
bool InSwiftKeyPath = false;
160160
bool InFreestandingMacroArgument = false;
161161

162-
#if SWIFT_BUILD_SWIFT_SYNTAX
163-
// This Parser is a fallback parser for ASTGen.
162+
/// This Parser is a fallback parser for ASTGen.
163+
// Note: This doesn't affect anything in non-SWIFT_BUILD_SWIFT_SYNTAX envs.
164164
bool IsForASTGen = false;
165-
#endif
166165

167166
// A cached answer to
168167
// Context.LangOpts.hasFeature(Feature::NoncopyableGenerics)

0 commit comments

Comments
 (0)