Skip to content

Commit acd708c

Browse files
committed
comments
1 parent f29abf9 commit acd708c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ static llvm::APSInt convertBoolVectorToInt(const Pointer &Val) {
145145
assert(Val.getFieldDesc()->isPrimitiveArray() &&
146146
Val.getFieldDesc()->getElemQualType()->isBooleanType() &&
147147
"Not a boolean vector");
148-
unsigned NumElts = Val.getNumElems();
148+
unsigned NumElems = Val.getNumElems();
149149

150150
// Each element is one bit, so create an integer with NumElts bits.
151-
llvm::APSInt Result(NumElts, 0);
152-
for (unsigned I = 0; I < NumElts; ++I) {
151+
llvm::APSInt Result(NumElems, 0);
152+
for (unsigned I = 0; I != NumElems; ++I) {
153153
if (Val.elem<bool>(I))
154154
Result.setBit(I);
155155
}

0 commit comments

Comments
 (0)