Skip to content

Commit e76be9e

Browse files
author
Matt Davis
committed
[siloptimizer] Use .str() on StringRef.
llvm recently removed the conversion operator that would convert StringRef into str() implictly. Now we have to be more explicit. See: llvm/llvm-project@adcd026
1 parent 3036774 commit e76be9e

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)