From 44ec002ffbff8ac2befdf032eb520c248ac74cb4 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 24 Sep 2013 22:17:32 +0000 Subject: [PATCH] Fixing up the demangling for swift.Optional 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 --- lib/Basic/Demangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basic/Demangle.cpp b/lib/Basic/Demangle.cpp index 9101c941c23..0699293583c 100644 --- a/lib/Basic/Demangle.cpp +++ b/lib/Basic/Demangle.cpp @@ -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')) {