We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29abf9 commit acd708cCopy full SHA for acd708c
clang/lib/AST/ByteCode/InterpBuiltin.cpp
@@ -145,11 +145,11 @@ static llvm::APSInt convertBoolVectorToInt(const Pointer &Val) {
145
assert(Val.getFieldDesc()->isPrimitiveArray() &&
146
Val.getFieldDesc()->getElemQualType()->isBooleanType() &&
147
"Not a boolean vector");
148
- unsigned NumElts = Val.getNumElems();
+ unsigned NumElems = Val.getNumElems();
149
150
// 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) {
+ llvm::APSInt Result(NumElems, 0);
+ for (unsigned I = 0; I != NumElems; ++I) {
153
if (Val.elem<bool>(I))
154
Result.setBit(I);
155
}
0 commit comments