mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
//===- Generics.cpp ---- Utilities for transforming generics ----*- C++ -*-===//
|
||||
//===--- Generics.cpp ---- Utilities for transforming generics --*- C++ -*-===//
|
||||
//
|
||||
// This source file is part of the Swift.org open source project
|
||||
//
|
||||
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
||||
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
|
||||
// Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
//
|
||||
// See http://swift.org/LICENSE.txt for license information
|
||||
@@ -272,13 +272,13 @@ ApplySite swift::trySpecializeApplyOfGeneric(ApplySite Apply,
|
||||
return ApplySite();
|
||||
}
|
||||
|
||||
llvm::SmallString<64> ClonedName;
|
||||
std::string ClonedName;
|
||||
{
|
||||
llvm::raw_svector_ostream buffer(ClonedName);
|
||||
ArrayRef<Substitution> Subs = Apply.getSubstitutions();
|
||||
Mangle::Mangler M(buffer);
|
||||
Mangle::Mangler M;
|
||||
GenericSpecializationMangler Mangler(M, F, Subs);
|
||||
Mangler.mangle();
|
||||
ClonedName = M.finalize();
|
||||
}
|
||||
DEBUG(llvm::dbgs() << " Specialized function " << ClonedName << '\n');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user