Skip to content

Commit 91d714b

Browse files
authored
Update Types.h
Fix a type collision that exists with delayed template instantiation. This header is used in LLDB and in Swift and the type is ambiguous when not forward declared.
1 parent d976ea6 commit 91d714b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/AST/Types.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,9 @@ enum class TypeMatchFlags {
352352
};
353353
using TypeMatchOptions = OptionSet<TypeMatchFlags>;
354354

355+
// Forward declare the ErrorType as otherwise we will match `lldb::ErrorType`.
356+
class ErrorType;
357+
355358
/// Base class for all types which describe the Swift and SIL ASTs.
356359
///
357360
/// See TypeNodes.def for a succinct description of the full class hierarchy.

0 commit comments

Comments
 (0)