[llvm] 72b04b9 - [SystemZ] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 09:03:53 PDT 2024
Author: Kazu Hirata
Date: 2024-09-19T09:03:47-07:00
New Revision: 72b04b9f16cd63657431a97f349f539d6d5d5a21
URL: https://github.com/llvm/llvm-project/commit/72b04b9f16cd63657431a97f349f539d6d5d5a21
DIFF: https://github.com/llvm/llvm-project/commit/72b04b9f16cd63657431a97f349f539d6d5d5a21.diff
LOG: [SystemZ] Fix a warning
This patch fixes:
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp:9857:21: error:
unused variable 'Flags' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index a24ed89e2af455..3dabc5ef540cfb 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -9861,6 +9861,7 @@ verifyNarrowIntegerArgs(const SmallVectorImpl<ISD::OutputArg> &Outs,
assert((VT != MVT::i32 ||
(Flags.isSExt() || Flags.isZExt() || Flags.isNoExt())) &&
"Narrow integer argument must have a valid extension type.");
+ (void)Flags;
}
}
}
More information about the llvm-commits
mailing list