Home
last modified time | relevance | path

Searched refs:caseValue (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/sksl/
DSkSLIRGenerator.cpp396 std::unique_ptr<Expression> caseValue; in convertSwitch() local
398 caseValue = this->convertExpression(*c->fValue); in convertSwitch()
399 if (!caseValue) { in convertSwitch()
402 if (caseValue->fType != *fContext.fUInt_Type) { in convertSwitch()
403 caseValue = this->coerce(std::move(caseValue), *fContext.fInt_Type); in convertSwitch()
404 if (!caseValue) { in convertSwitch()
408 if (!caseValue->isConstant()) { in convertSwitch()
409 fErrors.error(caseValue->fPosition, "case value must be a constant"); in convertSwitch()
412 ASSERT(caseValue->fKind == Expression::kIntLiteral_Kind); in convertSwitch()
413 int64_t v = ((IntLiteral&) *caseValue).fValue; in convertSwitch()
[all …]