Searched refs:safeIndex (Results 1 – 2 of 2) sorted by relevance
4764 int safeIndex = -1; in addIndexExpression() local4769 safeIndex = 0; in addIndexExpression()4784 safeIndex = 0; in addIndexExpression()4789 if (safeIndex < 0) in addIndexExpression()4793 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()4799 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()4806 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()4812 ASSERT(safeIndex >= 0); in addIndexExpression()4816 if (safeIndex != index || indexConstantUnion->getBasicType() != EbtInt) in addIndexExpression()4819 safeConstantUnion->setIConst(safeIndex); in addIndexExpression()
2532 int safeIndex = -1; in addIndexExpression() local2543 safeIndex = baseExpression->getType().getArraySize() - 1; in addIndexExpression()2554 safeIndex = baseExpression->getType().getNominalSize() - 1; in addIndexExpression()2559 if(safeIndex != -1) in addIndexExpression()2562 safeConstantUnion->setIConst(safeIndex); in addIndexExpression()