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:
Enrico Granata
2013-09-24 22:17:32 +00:00
parent 2456b33471
commit 44ec002ffb

View File

@@ -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')) {