Skip to content

Commit 0515e00

Browse files
author
David Ungar
committed
Robert Widmann's .str() fixes
1 parent b367d2e commit 0515e00

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/AST/FrontendSourceFileDepGraphFactory.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ std::string DependencyKey::computeNameForProvidedEntity<
270270
template <>
271271
DependencyKey
272272
DependencyKey::createDependedUponKey<NodeKind::topLevel>(StringRef name) {
273-
return DependencyKey(NodeKind::topLevel, DeclAspect::interface, "", name.str());
273+
return DependencyKey(NodeKind::topLevel, DeclAspect::interface, "",
274+
name.str());
274275
}
275276

276277
template <>
@@ -290,8 +291,8 @@ DependencyKey::createDependedUponKey<NodeKind::externalDepend>(StringRef name) {
290291
template <>
291292
DependencyKey
292293
DependencyKey::createDependedUponKey<NodeKind::nominal>(StringRef mangledName) {
293-
return DependencyKey(NodeKind::nominal, DeclAspect::interface, mangledName.str(),
294-
"");
294+
return DependencyKey(NodeKind::nominal, DeclAspect::interface,
295+
mangledName.str(), "");
295296
}
296297

297298
DependencyKey DependencyKey::createDependedUponKey(StringRef mangledHolderName,

0 commit comments

Comments
 (0)