We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac7620 commit cb7b64aCopy full SHA for cb7b64a
include/swift/Basic/LangOptions.h
@@ -351,7 +351,7 @@ namespace swift {
351
/// Sets an implicit platform condition.
352
void addPlatformConditionValue(PlatformConditionKind Kind, StringRef Value) {
353
assert(!Value.empty());
354
- PlatformConditionValues.emplace_back(Kind, Value);
+ PlatformConditionValues.emplace_back(Kind, Value.str());
355
}
356
357
/// Removes all values added with addPlatformConditionValue.
0 commit comments