Skip to content

Commit b58f308

Browse files
committed
Non-functional: spellings of "destinaton" and "addPairConversion"
1 parent d8daeb4 commit b58f308

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

glslang/MachineIndependent/Intermediate.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ TIntermTyped* TIntermediate::addBinaryMath(TOperator op, TIntermTyped* left, TIn
177177
return nullptr;
178178

179179
// Try converting the children's base types to compatible types.
180-
auto children = addConversion(op, left, right);
180+
auto children = addPairConversion(op, left, right);
181181
left = std::get<0>(children);
182182
right = std::get<1>(children);
183183

@@ -887,7 +887,7 @@ TIntermTyped* TIntermediate::addConversion(TBasicType convertTo, TIntermTyped* n
887887
// Returns the converted pair of nodes.
888888
// Returns <nullptr, nullptr> when there is no conversion.
889889
std::tuple<TIntermTyped*, TIntermTyped*>
890-
TIntermediate::addConversion(TOperator op, TIntermTyped* node0, TIntermTyped* node1)
890+
TIntermediate::addPairConversion(TOperator op, TIntermTyped* node0, TIntermTyped* node1)
891891
{
892892
if (!isConversionAllowed(op, node0) || !isConversionAllowed(op, node1))
893893
return std::make_tuple(nullptr, nullptr);
@@ -940,7 +940,7 @@ TIntermediate::addConversion(TOperator op, TIntermTyped* node0, TIntermTyped* no
940940
if (node0->getBasicType() == node1->getBasicType())
941941
return std::make_tuple(node0, node1);
942942

943-
promoteTo = getConversionDestinatonType(node0->getBasicType(), node1->getBasicType(), op);
943+
promoteTo = getConversionDestinationType(node0->getBasicType(), node1->getBasicType(), op);
944944
if (std::get<0>(promoteTo) == EbtNumTypes || std::get<1>(promoteTo) == EbtNumTypes)
945945
return std::make_tuple(nullptr, nullptr);
946946

@@ -1951,7 +1951,7 @@ static TBasicType getCorrespondingUnsignedType(TBasicType type)
19511951
// integer type corresponding to the type of the operand with signed
19521952
// integer type.
19531953

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
19551955
{
19561956
TBasicType res0 = EbtNumTypes;
19571957
TBasicType res1 = EbtNumTypes;
@@ -2490,7 +2490,7 @@ TIntermTyped* TIntermediate::addSelection(TIntermTyped* cond, TIntermTyped* true
24902490
//
24912491
// Get compatible types.
24922492
//
2493-
auto children = addConversion(EOpSequence, trueBlock, falseBlock);
2493+
auto children = addPairConversion(EOpSequence, trueBlock, falseBlock);
24942494
trueBlock = std::get<0>(children);
24952495
falseBlock = std::get<1>(children);
24962496

glslang/MachineIndependent/localintermediate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class TIntermediate {
425425
TIntermSymbol* addSymbol(const TType&, const TSourceLoc&);
426426
TIntermSymbol* addSymbol(const TIntermSymbol&);
427427
TIntermTyped* addConversion(TOperator, const TType&, TIntermTyped*);
428-
std::tuple<TIntermTyped*, TIntermTyped*> addConversion(TOperator op, TIntermTyped* node0, TIntermTyped* node1);
428+
std::tuple<TIntermTyped*, TIntermTyped*> addPairConversion(TOperator op, TIntermTyped* node0, TIntermTyped* node1);
429429
TIntermTyped* addUniShapeConversion(TOperator, const TType&, TIntermTyped*);
430430
TIntermTyped* addConversion(TBasicType convertTo, TIntermTyped* node) const;
431431
void addBiShapeConversion(TOperator, TIntermTyped*& lhsNode, TIntermTyped*& rhsNode);
@@ -914,7 +914,7 @@ class TIntermediate {
914914
bool specConstantPropagates(const TIntermTyped&, const TIntermTyped&);
915915
void performTextureUpgradeAndSamplerRemovalTransformation(TIntermNode* root);
916916
bool isConversionAllowed(TOperator op, TIntermTyped* node) const;
917-
std::tuple<TBasicType, TBasicType> getConversionDestinatonType(TBasicType type0, TBasicType type1, TOperator op) const;
917+
std::tuple<TBasicType, TBasicType> getConversionDestinationType(TBasicType type0, TBasicType type1, TOperator op) const;
918918

919919
// JohnK: I think this function should go away.
920920
// This data structure is just a log to pass on to back ends.

0 commit comments

Comments
 (0)