[clang] 86943d8 - Formula.h - fix MSVC "'clang::dataflow::Formula::numOperands': not all control paths return a value". NFC.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 10 08:56:09 PDT 2023


Author: Simon Pilgrim
Date: 2023-07-10T16:55:52+01:00
New Revision: 86943d863ef66d68bf79d3e2f0ec2c205814b235

URL: https://github.com/llvm/llvm-project/commit/86943d863ef66d68bf79d3e2f0ec2c205814b235
DIFF: https://github.com/llvm/llvm-project/commit/86943d863ef66d68bf79d3e2f0ec2c205814b235.diff

LOG: Formula.h - fix MSVC "'clang::dataflow::Formula::numOperands': not all control paths return a value". NFC.

Added: 
    

Modified: 
    clang/include/clang/Analysis/FlowSensitive/Formula.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Analysis/FlowSensitive/Formula.h b/clang/include/clang/Analysis/FlowSensitive/Formula.h
index 0c7b1ecd02b17c..64fe8f5b630a0f 100644
--- a/clang/include/clang/Analysis/FlowSensitive/Formula.h
+++ b/clang/include/clang/Analysis/FlowSensitive/Formula.h
@@ -104,6 +104,7 @@ class alignas(const Formula *) Formula {
     case Equal:
       return 2;
     }
+    llvm_unreachable("Unhandled Formula::Kind enum");
   }
 
   Kind FormulaKind;


        


More information about the cfe-commits mailing list