[llvm] 046b87f - Fix MSVC not all control paths return a value warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 06:41:53 PDT 2024
Author: Simon Pilgrim
Date: 2024-10-24T06:39:07-07:00
New Revision: 046b87fb3ca8e84c42c915f2bd66a95004e136fc
URL: https://github.com/llvm/llvm-project/commit/046b87fb3ca8e84c42c915f2bd66a95004e136fc
DIFF: https://github.com/llvm/llvm-project/commit/046b87fb3ca8e84c42c915f2bd66a95004e136fc.diff
LOG: Fix MSVC not all control paths return a value warning. NFC.
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 8f698f44c7c00b..bcfafd75d4caaf 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
@@ -41,6 +41,7 @@ struct ToStr {
case LegalityResultID::Widen:
return "Widen";
}
+ llvm_unreachable("Unknown LegalityResultID enum");
}
static const char *getVecReason(ResultReason Reason) {
@@ -50,6 +51,7 @@ struct ToStr {
case ResultReason::DiffTypes:
return "DiffTypes";
}
+ llvm_unreachable("Unknown ResultReason enum");
}
};
#endif // NDEBUG
More information about the llvm-commits
mailing list