[llvm] 0bd90ec - [AArch64] Fix a warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 09:09:16 PDT 2024


Author: Kazu Hirata
Date: 2024-08-22T09:09:08-07:00
New Revision: 0bd90ec421da16df6d020d5a21b642a489491c1e

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

LOG: [AArch64] Fix a warning

This patch fixes:

  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:6102:9: error:
  unused variable 'OpVT' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 33fc6e56a24793..8c2f85657ff87e 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -6106,6 +6106,7 @@ SDValue AArch64TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
                                 OpVT == MVT::v8i16 || OpVT == MVT::v4i16)) ||
          (ResVT == MVT::i64 && (OpVT == MVT::v4i32 || OpVT == MVT::v2i32))) &&
         "Unexpected aarch64_neon_u/saddlv type");
+    (void)OpVT;
     // In order to avoid insert_subvector, use v4i32 rather than v2i32.
     SDValue ADDLV = DAG.getNode(
         IntNo == Intrinsic::aarch64_neon_uaddlv ? AArch64ISD::UADDLV


        


More information about the llvm-commits mailing list