[AArch64] Silence unused variable warning. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Jul 2021 14:01:11 +0000 (16:01 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 12 Jul 2021 14:01:11 +0000 (16:01 +0200)
AArch64ISelLowering.cpp:15167:8: warning: unused variable 'OpCode' [-Wunused-variable]
  auto OpCode = N->getOpcode();
       ^

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

index 4cd65c83ad07e6a105c98f31c194bb00064cdddb..f9a90a01f7c5f118821450c3aeecf98c2e45c0c1 100644 (file)
@@ -15164,8 +15164,7 @@ static bool performTBISimplification(SDValue Addr,
 }
 
 static SDValue foldTruncStoreOfExt(SelectionDAG &DAG, SDNode *N) {
-  auto OpCode = N->getOpcode();
-  assert((OpCode == ISD::STORE || OpCode == ISD::MSTORE) &&
+  assert((N->getOpcode() == ISD::STORE || N->getOpcode() == ISD::MSTORE) &&
          "Expected STORE dag node in input!");
 
   if (auto Store = dyn_cast<StoreSDNode>(N)) {