@@ -177,7 +177,7 @@ TIntermTyped* TIntermediate::addBinaryMath(TOperator op, TIntermTyped* left, TIn
177
177
return nullptr ;
178
178
179
179
// Try converting the children's base types to compatible types.
180
- auto children = addConversion (op, left, right);
180
+ auto children = addPairConversion (op, left, right);
181
181
left = std::get<0 >(children);
182
182
right = std::get<1 >(children);
183
183
@@ -887,7 +887,7 @@ TIntermTyped* TIntermediate::addConversion(TBasicType convertTo, TIntermTyped* n
887
887
// Returns the converted pair of nodes.
888
888
// Returns <nullptr, nullptr> when there is no conversion.
889
889
std::tuple<TIntermTyped*, TIntermTyped*>
890
- TIntermediate::addConversion (TOperator op, TIntermTyped* node0, TIntermTyped* node1)
890
+ TIntermediate::addPairConversion (TOperator op, TIntermTyped* node0, TIntermTyped* node1)
891
891
{
892
892
if (!isConversionAllowed (op, node0) || !isConversionAllowed (op, node1))
893
893
return std::make_tuple (nullptr , nullptr );
@@ -940,7 +940,7 @@ TIntermediate::addConversion(TOperator op, TIntermTyped* node0, TIntermTyped* no
940
940
if (node0->getBasicType () == node1->getBasicType ())
941
941
return std::make_tuple (node0, node1);
942
942
943
- promoteTo = getConversionDestinatonType (node0->getBasicType (), node1->getBasicType (), op);
943
+ promoteTo = getConversionDestinationType (node0->getBasicType (), node1->getBasicType (), op);
944
944
if (std::get<0 >(promoteTo) == EbtNumTypes || std::get<1 >(promoteTo) == EbtNumTypes)
945
945
return std::make_tuple (nullptr , nullptr );
946
946
@@ -1951,7 +1951,7 @@ static TBasicType getCorrespondingUnsignedType(TBasicType type)
1951
1951
// integer type corresponding to the type of the operand with signed
1952
1952
// integer type.
1953
1953
1954
- std::tuple<TBasicType, TBasicType> TIntermediate::getConversionDestinatonType (TBasicType type0, TBasicType type1, TOperator op) const
1954
+ std::tuple<TBasicType, TBasicType> TIntermediate::getConversionDestinationType (TBasicType type0, TBasicType type1, TOperator op) const
1955
1955
{
1956
1956
TBasicType res0 = EbtNumTypes;
1957
1957
TBasicType res1 = EbtNumTypes;
@@ -2490,7 +2490,7 @@ TIntermTyped* TIntermediate::addSelection(TIntermTyped* cond, TIntermTyped* true
2490
2490
//
2491
2491
// Get compatible types.
2492
2492
//
2493
- auto children = addConversion (EOpSequence, trueBlock, falseBlock);
2493
+ auto children = addPairConversion (EOpSequence, trueBlock, falseBlock);
2494
2494
trueBlock = std::get<0 >(children);
2495
2495
falseBlock = std::get<1 >(children);
2496
2496
0 commit comments