mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mangler: Eliminate an ambiguity in the mangling of contexts.
<rdar://problem/15444866> Mangling is ambiguous -- may want prefix for functions Swift SVN r10669
This commit is contained in:
@@ -903,6 +903,14 @@ private:
|
||||
return nullptr;
|
||||
NodePointer demangled_ctx(nullptr);
|
||||
char c = Mangled.peek();
|
||||
if (c == 'F') {
|
||||
Mangled.next();
|
||||
demangled_ctx = Node::makeNodePointer(Node::Kind::Declaration);
|
||||
if (!demangleEntity(demangled_ctx))
|
||||
return NodePointer(new Node(Node::Kind::Failure, ""));
|
||||
else return demangled_ctx;
|
||||
}
|
||||
|
||||
if (isStartOfIdentifier(c) || c == 'S') {
|
||||
demangled_ctx = demangleModule();
|
||||
if (allow_greedy && Mangled.hasAtLeast(1) && isStartOfIdentifier(Mangled.peek()))
|
||||
|
||||
Reference in New Issue
Block a user