Skip to content

Commit abf520f

Browse files
authored
Merge pull request #30884 from enferex/use-explicit-stringref
[siloptimizer] Use .str() on StringRef.
2 parents ec92835 + e76be9e commit abf520f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/Differentiation/Common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ SILDifferentiabilityWitness *getOrCreateMinimalASTDifferentiabilityWitness(
357357
if (!minimalConfig)
358358
return nullptr;
359359

360-
std::string originalName = original->getName();
360+
std::string originalName = original->getName().str();
361361
// If original function requires a foreign entry point, use the foreign SIL
362362
// function to get or create the minimal differentiability witness.
363363
if (requiresForeignEntryPoint(originalAFD)) {

0 commit comments

Comments
 (0)