Skip to content

Commit f6662a8

Browse files
authored
Merge pull request swiftlang#30437 from benlangmuir/more-stringref
Update for llvm StringRef string conversion
2 parents eeb7fa5 + cb7b64a commit f6662a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ namespace swift {
351351
/// Sets an implicit platform condition.
352352
void addPlatformConditionValue(PlatformConditionKind Kind, StringRef Value) {
353353
assert(!Value.empty());
354-
PlatformConditionValues.emplace_back(Kind, Value);
354+
PlatformConditionValues.emplace_back(Kind, Value.str());
355355
}
356356

357357
/// Removes all values added with addPlatformConditionValue.

0 commit comments

Comments
 (0)