diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-04-28 12:00:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-28 12:00:52 +0800 |
| commit | b07f4effda2f87ac9b3229e588121d224fd8cf52 (patch) | |
| tree | 95d4602ba4a3fffe9a879a4960602e8b8d887017 /source/slang/slang-lower-to-ir.cpp | |
| parent | 53793612e3a2f1cadc4f7cbf703bcd94b7121414 (diff) | |
Use Index for FuncType param count (#2853)
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 14ed8ea54..1511615ed 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -1897,9 +1897,9 @@ struct ValLoweringVisitor : ValVisitor<ValLoweringVisitor, LoweredValInfo, Lower IRFuncType* visitFuncType(FuncType* type) { IRType* resultType = lowerType(context, type->getResultType()); - UInt paramCount = type->getParamCount(); + Index paramCount = type->getParamCount(); List<IRType*> paramTypes; - for (UInt pp = 0; pp < paramCount; ++pp) + for (Index pp = 0; pp < paramCount; ++pp) { paramTypes.add(lowerType(context, type->getParamType(pp))); } @@ -3930,7 +3930,7 @@ struct ExprLoweringVisitorBase : ExprVisitor<Derived, LoweredValInfo> List<OutArgumentFixup>* ioFixups) { Count argCount = expr->arguments.getCount(); - SLANG_ASSERT(argCount == static_cast<Count>(funcType->getParamCount())); + SLANG_ASSERT(argCount == funcType->getParamCount()); for(Index i = 0; i < argCount; ++i) { |
