From cbba1f2ba451f31e910d59fb9efbadc5e370c095 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 2 Mar 2020 19:14:18 -0500 Subject: Renamed UnownedStringSlice::size to getLength to make match String. (#1254) --- source/slang/slang-hlsl-intrinsic-set.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-hlsl-intrinsic-set.cpp') 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) -- cgit v1.2.3