Skip to content

Commit 5a09a8f

Browse files
refactor: provide better naming and enhance loop condition
1 parent 0ce2ef7 commit 5a09a8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13383,12 +13383,12 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1338313383
if (!EvaluateAsRValue(Info, E->getArg(0), SourceLHS) ||
1338413384
!EvaluateAsRValue(Info, E->getArg(1), SourceRHS))
1338513385
return false;
13386-
unsigned NumElts = SourceLHS.getVectorLength();
13386+
unsigned NumElems = SourceLHS.getVectorLength();
1338713387
SmallVector<APValue, 8> ResultElements;
13388-
ResultElements.reserve(NumElts);
13388+
ResultElements.reserve(NumElems);
1338913389
llvm::RoundingMode RM = getActiveRoundingMode(getEvalInfo(), E);
1339013390

13391-
for (unsigned I = 0; I < NumElts; ++I) {
13391+
for (unsigned I = 0; I != NumElems; ++I) {
1339213392
APFloat LHS = SourceLHS.getVectorElt(I).getFloat();
1339313393
APFloat RHS = SourceRHS.getVectorElt(I).getFloat();
1339413394
if (I % 2 == 0) {

0 commit comments

Comments
 (0)