Skip to content

Commit cb7b64a

Browse files
committed
Update for llvm StringRef string conversion
rdar://60514063
1 parent 7ac7620 commit cb7b64a

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)