Searched refs:safeIndex (Results 1 – 2 of 2) sorted by relevance
4824 int safeIndex = -1; in addIndexExpression() local4829 safeIndex = 0; in addIndexExpression()4844 safeIndex = 0; in addIndexExpression()4849 if (safeIndex < 0) in addIndexExpression()4853 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()4859 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()4866 safeIndex = checkIndexLessThan(outOfRangeIndexIsError, location, index, in addIndexExpression()4872 ASSERT(safeIndex >= 0); in addIndexExpression()4876 if (safeIndex != index || indexConstantUnion->getBasicType() != EbtInt) in addIndexExpression()4879 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()