diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index e1bc274569ba3..79ab70f2bd942 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -15141,9 +15141,8 @@ static bool performTBISimplification(SDValue Addr, } static SDValue foldTruncStoreOfExt(SelectionDAG &DAG, SDNode *N) { - auto OpCode = N->getOpcode(); - assert(OpCode == ISD::STORE || - OpCode == ISD::MSTORE && "Expected STORE dag node in input!"); + assert(N->getOpcode() == ISD::STORE || + N->getOpcode() == ISD::MSTORE && "Expected STORE dag node in input!"); if (auto Store = dyn_cast(N)) { if (!Store->isTruncatingStore() || Store->isIndexed())