diff --git a/mlir/lib/IR/AttributeDetail.h b/mlir/lib/IR/AttributeDetail.h index 0d39bcfd32ee..56d1762878db 100644 --- a/mlir/lib/IR/AttributeDetail.h +++ b/mlir/lib/IR/AttributeDetail.h @@ -469,7 +469,7 @@ struct DenseElementsAttributeStorage : public AttributeStorage { if (splatValue && numOddElements != 0) { // Check that all bits are set in the last value. char lastElt = splatData.back(); - if (lastElt != llvm::maskTrailingOnes(numOddElements)) + if (lastElt != llvm::maskTrailingOnes(numOddElements)) return KeyTy(ty, data, llvm::hash_value(data)); // If this is the only element, the data is known to be a splat.