[llvm] 6f12281 - Fix a -Wunused-variable warning in release build, NFC
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 04:56:57 PST 2022
Author: Haojian Wu
Date: 2022-12-06T13:56:16+01:00
New Revision: 6f12281d8ebbd731735819332d3e7b299d95c6c7
URL: https://github.com/llvm/llvm-project/commit/6f12281d8ebbd731735819332d3e7b299d95c6c7
DIFF: https://github.com/llvm/llvm-project/commit/6f12281d8ebbd731735819332d3e7b299d95c6c7.diff
LOG: Fix a -Wunused-variable warning in release build, NFC
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 3410271946f2..9fcee1c9ae0e 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -21763,8 +21763,7 @@ void AArch64TargetLowering::ReplaceNodeResults(
}
case ISD::READ_REGISTER: {
SDLoc DL(N);
- EVT VT = N->getValueType(0);
- assert(VT == MVT::i128 &&
+ assert(N->getValueType(0) == MVT::i128 &&
"READ_REGISTER custom lowering is only for 128-bit sysregs");
SDValue Chain = N->getOperand(0);
SDValue SysRegName = N->getOperand(1);
More information about the llvm-commits
mailing list