diff options
Diffstat (limited to 'source/slang/slang-ir-any-value-marshalling.cpp')
| -rw-r--r-- | source/slang/slang-ir-any-value-marshalling.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/slang-ir-any-value-marshalling.cpp b/source/slang/slang-ir-any-value-marshalling.cpp index 27bba3fde..0c603d81a 100644 --- a/source/slang/slang-ir-any-value-marshalling.cpp +++ b/source/slang/slang-ir-any-value-marshalling.cpp @@ -49,7 +49,7 @@ namespace Slang AnyValueTypeInfo* ensureAnyValueType(IRAnyValueType* type) { auto size = getIntVal(type->getSize()); - if (auto typeInfo = generatedAnyValueTypes.TryGetValue(size)) + if (auto typeInfo = generatedAnyValueTypes.tryGetValue(size)) return typeInfo->Ptr(); RefPtr<AnyValueTypeInfo> info = new AnyValueTypeInfo(); IRBuilder builder(sharedContext->module); @@ -63,7 +63,7 @@ namespace Slang for (decltype(fieldCount) i = 0; i < fieldCount; i++) { auto key = builder.createStructKey(); - nameSb.Clear(); + nameSb.clear(); nameSb << "field" << i; builder.addNameHintDecoration(key, nameSb.getUnownedSlice()); nameSb << "_anyVal" << size; @@ -560,7 +560,7 @@ namespace Slang key.originalType = type; key.anyValueSize = size; MarshallingFunctionSet funcSet; - if (mapTypeMarshalingFunctions.TryGetValue(key, funcSet)) + if (mapTypeMarshalingFunctions.tryGetValue(key, funcSet)) return funcSet; funcSet.packFunc = generatePackingFunc(type, anyValueType); funcSet.unpackFunc = generateUnpackingFunc(type, anyValueType); @@ -627,7 +627,7 @@ namespace Slang IRInst* inst = sharedContext->workList.getLast(); sharedContext->workList.removeLast(); - sharedContext->workListSet.Remove(inst); + sharedContext->workListSet.remove(inst); processInst(inst); @@ -643,7 +643,7 @@ namespace Slang if (auto anyValueType = as<IRAnyValueType>(inst)) processAnyValueType(anyValueType); } - sharedContext->mapInterfaceRequirementKeyValue.Clear(); + sharedContext->mapInterfaceRequirementKeyValue.clear(); } }; |
