Fix -Wunused-variable warning, NFC.

This commit is contained in:
Haojian Wu 2020-04-24 11:03:53 +02:00
parent 302e11cd97
commit 500d378ee5
1 changed files with 2 additions and 2 deletions

View File

@ -597,8 +597,8 @@ struct DenseStringElementsAttributeStorage
return KeyTy(ty, data, llvm::hash_value(data), isKnownSplat);
// Handle the simple case of only one element.
size_t numElements = ty.getNumElements();
assert(numElements != 1 && "splat of 1 element should already be detected");
assert(ty.getNumElements() != 1 &&
"splat of 1 element should already be detected");
// Create the initial hash value with just the first element.
const auto &firstElt = data.front();