[clang] f6a3ac1 - Fix `-Wunused-variable` warning. NFC.

Michael Liao via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 09:45:24 PST 2020


Author: Michael Liao
Date: 2020-02-12T12:45:14-05:00
New Revision: f6a3ac150b8d9f3458f526cf76ebcd545bfc1898

URL: https://github.com/llvm/llvm-project/commit/f6a3ac150b8d9f3458f526cf76ebcd545bfc1898
DIFF: https://github.com/llvm/llvm-project/commit/f6a3ac150b8d9f3458f526cf76ebcd545bfc1898.diff

LOG: Fix `-Wunused-variable` warning. NFC.

Added: 
    

Modified: 
    clang/lib/CodeGen/TargetInfo.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index 905440febb51..e40f24d0ca4d 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -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"));


        


More information about the cfe-commits mailing list