diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-03-02 19:14:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 19:14:18 -0500 |
| commit | cbba1f2ba451f31e910d59fb9efbadc5e370c095 (patch) | |
| tree | cf34d86713e2f915a42ce4ece11b7da82b9d4454 /source/slang/slang-hlsl-intrinsic-set.cpp | |
| parent | dbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff) | |
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/slang/slang-hlsl-intrinsic-set.cpp')
| -rw-r--r-- | source/slang/slang-hlsl-intrinsic-set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-hlsl-intrinsic-set.cpp b/source/slang/slang-hlsl-intrinsic-set.cpp index 7500e799a..936181d83 100644 --- a/source/slang/slang-hlsl-intrinsic-set.cpp +++ b/source/slang/slang-hlsl-intrinsic-set.cpp @@ -401,7 +401,7 @@ HLSLIntrinsicOpLookup::HLSLIntrinsicOpLookup(): const auto& info = HLSLIntrinsic::getInfo(Op(i)); UnownedStringSlice slice = info.funcName; - if (slice.size() > 0 && slice[0] >= 'a' && slice[0] <= 'z') + if (slice.getLength() > 0 && slice[0] >= 'a' && slice[0] <= 'z') { auto handle = m_slicePool.add(slice); Index index = Index(handle); @@ -478,7 +478,7 @@ HLSLIntrinsic::Op HLSLIntrinsicOpLookup::getOpFromTargetDecoration(IRInst* inIns // original HLSL name, which has a target of "" // // It's not 100% clear this covers all the cases, but for now lets go with that - if (decor->getTargetName().size() == 0) + if (decor->getTargetName().getLength() == 0) { Op op = getOpByName(decor->getDefinition()); if (op != Op::Invalid) |
