[llvm] 0da3573 - [AArch64] Silence unused variable warning. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 12 07:02:24 PDT 2021
Author: Benjamin Kramer
Date: 2021-07-12T16:01:11+02:00
New Revision: 0da3573a9ef9dd4450e8121e9a2b501938fc0f79
URL: https://github.com/llvm/llvm-project/commit/0da3573a9ef9dd4450e8121e9a2b501938fc0f79
DIFF: https://github.com/llvm/llvm-project/commit/0da3573a9ef9dd4450e8121e9a2b501938fc0f79.diff
LOG: [AArch64] Silence unused variable warning. NFC.
AArch64ISelLowering.cpp:15167:8: warning: unused variable 'OpCode' [-Wunused-variable]
auto OpCode = N->getOpcode();
^
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 4cd65c83ad07..f9a90a01f7c5 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -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)) {
More information about the llvm-commits
mailing list