[llvm] 00c1c58 - DependencyGraph.cpp - mix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 03:55:15 PDT 2024
Author: Simon Pilgrim
Date: 2024-10-09T11:47:43+01:00
New Revision: 00c1c589e0d8878251993db57e3fd71f7105402d
URL: https://github.com/llvm/llvm-project/commit/00c1c589e0d8878251993db57e3fd71f7105402d
DIFF: https://github.com/llvm/llvm-project/commit/00c1c589e0d8878251993db57e3fd71f7105402d.diff
LOG: DependencyGraph.cpp - mix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp
index 35ea28697424a6..b88b0e89b9e798 100644
--- a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp
+++ b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp
@@ -136,6 +136,7 @@ bool DependencyGraph::hasDep(Instruction *SrcI, Instruction *DstI) {
case DependencyType::None:
return false;
}
+ llvm_unreachable("Unknown DependencyType enum");
}
void DependencyGraph::scanAndAddDeps(DGNode &DstN,
More information about the llvm-commits
mailing list