Skip to content

Commit 6f56b47

Browse files
authored
Fix option set serialization bug (#6515)
This helps to address issue #4760.
1 parent a99ee55 commit 6f56b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/slang-compiler-options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void CompilerOptionSet::serialize(SerializedOptionsData* outData)
347347
outData->stringPool.add(val.stringValue);
348348
entry.value.stringValue0 = val.stringValue.getBuffer();
349349
outData->stringPool.add(val.stringValue2);
350-
entry.value.stringValue1 = val.stringValue.getBuffer();
350+
entry.value.stringValue1 = val.stringValue2.getBuffer();
351351
outData->entries.add(entry);
352352
}
353353
}

0 commit comments

Comments
 (0)