Skip to content

Commit

Permalink
Fix the mangling of initializer contexts.
Browse files Browse the repository at this point in the history
Swift SVN r11956
  • Loading branch information
rjmccall committed Jan 6, 2014
1 parent f9461ac commit 942d3b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/AST/Mangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,11 +1112,10 @@ void Mangler::mangleDefaultArgumentEntity(DeclContext *func, unsigned index) {
}

void Mangler::mangleInitializerEntity(VarDecl *var) {
// The initializer is its own entity whose context is the variable.
Buffer << 'I';
mangleContext(var->getDeclContext(), BindGenerics::All);
mangleEntity(var, ExplosionKind::Minimal, /*uncurry*/ 0);
Buffer << 'i';
mangleDeclName(var);
mangleDeclType(var, ExplosionKind::Minimal, /*uncurry*/ 0);
}

void Mangler::mangleEntity(ValueDecl *decl, ExplosionKind explosion,
Expand Down

0 comments on commit 942d3b0

Please sign in to comment.