mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixing up the demangling for swift.Optional<T> to be an Enum instead of a struct
(Optional is an hardcoded substitution, so even if its definition changes, the mangling won't change, and the demangler has to keep up!) Swift SVN r8609
This commit is contained in:
@@ -720,7 +720,7 @@ private:
|
||||
if (Mangled.nextIf('q')) {
|
||||
NodePointer type = Node::makeNodePointer(Node::Kind::Path);
|
||||
type->push_back_child(Node::makeNodePointer(Node::Kind::Module,"swift"))->setNextNode(
|
||||
Node::makeNodePointer(Node::Kind::Structure,"Optional"));
|
||||
Node::makeNodePointer(Node::Kind::Enum,"Optional"));
|
||||
return { type, IsProtocol::no };
|
||||
}
|
||||
if (Mangled.nextIf('S')) {
|
||||
|
||||
Reference in New Issue
Block a user