[llvm] d4630ae - [Vectorize] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 09:22:17 PDT 2024
Author: Kazu Hirata
Date: 2024-10-21T09:22:10-07:00
New Revision: d4630ae5ed678e50f4758d0fb7a6875494f690e5
URL: https://github.com/llvm/llvm-project/commit/d4630ae5ed678e50f4758d0fb7a6875494f690e5
DIFF: https://github.com/llvm/llvm-project/commit/d4630ae5ed678e50f4758d0fb7a6875494f690e5.diff
LOG: [Vectorize] Fix a warning
This patch fixes:
llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h:85:16:
error: private field 'Reason' is not used
[-Werror,-Wunused-private-field]
Added:
Modified:
llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
index 233abf3efd64e1..8f698f44c7c00b 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
@@ -82,7 +82,7 @@ class LegalityResult {
/// Base class for results with reason.
class LegalityResultWithReason : public LegalityResult {
- ResultReason Reason;
+ [[maybe_unused]] ResultReason Reason;
LegalityResultWithReason(LegalityResultID ID, ResultReason Reason)
: LegalityResult(ID), Reason(Reason) {}
friend class Pack; // For constructor.
More information about the llvm-commits
mailing list