Index: clang/lib/AST/MicrosoftMangle.cpp =================================================================== --- clang/lib/AST/MicrosoftMangle.cpp +++ clang/lib/AST/MicrosoftMangle.cpp @@ -947,12 +947,11 @@ mangleSourceName(Name); - // If the context of a closure type is an initializer for a class - // member (static or nonstatic), it is encoded in a qualified name. + // If the context is a variable or a class member, it is encoded + // in a qualified name. if (LambdaManglingNumber && LambdaContextDecl) { if ((isa(LambdaContextDecl) || - isa(LambdaContextDecl)) && - LambdaContextDecl->getDeclContext()->isRecord()) { + isa(LambdaContextDecl))) { mangleUnqualifiedName(cast(LambdaContextDecl)); } }