Fix `-Wunused-variable` warning. NFC.

This commit is contained in:
Michael Liao 2020-02-12 12:43:51 -05:00
parent 45417b7aa7
commit f6a3ac150b
1 changed files with 1 additions and 1 deletions

View File

@ -7578,7 +7578,7 @@ ABIArgInfo HexagonABIInfo::classifyReturnType(QualType RetTy) const {
const TargetInfo &T = CGT.getTarget();
uint64_t Size = getContext().getTypeSize(RetTy);
if (const auto *VecTy = RetTy->getAs<VectorType>()) {
if (RetTy->getAs<VectorType>()) {
// HVX vectors are returned in vector registers or register pairs.
if (T.hasFeature("hvx")) {
assert(T.hasFeature("hvx-length64b") || T.hasFeature("hvx-length128b"));