forked from OSchip/llvm-project
Fix -Wunused-variable warning, NFC.
This commit is contained in:
parent
302e11cd97
commit
500d378ee5
|
@ -597,8 +597,8 @@ struct DenseStringElementsAttributeStorage
|
||||||
return KeyTy(ty, data, llvm::hash_value(data), isKnownSplat);
|
return KeyTy(ty, data, llvm::hash_value(data), isKnownSplat);
|
||||||
|
|
||||||
// Handle the simple case of only one element.
|
// Handle the simple case of only one element.
|
||||||
size_t numElements = ty.getNumElements();
|
assert(ty.getNumElements() != 1 &&
|
||||||
assert(numElements != 1 && "splat of 1 element should already be detected");
|
"splat of 1 element should already be detected");
|
||||||
|
|
||||||
// Create the initial hash value with just the first element.
|
// Create the initial hash value with just the first element.
|
||||||
const auto &firstElt = data.front();
|
const auto &firstElt = data.front();
|
||||||
|
|
Loading…
Reference in New Issue