[llvm] 1b85935 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 01:38:28 PDT 2024
Author: Simon Pilgrim
Date: 2024-08-06T09:38:09+01:00
New Revision: 1b8593545316971ac3f922dcb7178623b5820003
URL: https://github.com/llvm/llvm-project/commit/1b8593545316971ac3f922dcb7178623b5820003
DIFF: https://github.com/llvm/llvm-project/commit/1b8593545316971ac3f922dcb7178623b5820003.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 534a4e60bb9f0..5c6a2454d664b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -13157,6 +13157,7 @@ std::optional<bool> SelectionDAG::isBoolConstant(SDValue N,
case TargetLowering::UndefinedBooleanContent:
return CVal[0];
}
+ llvm_unreachable("Unknown BooleanContent enum");
}
void SelectionDAG::createOperands(SDNode *Node, ArrayRef<SDValue> Vals) {
More information about the llvm-commits
mailing list