Author: Aaron Ballman
Date: 2026-11-09T20:57:33Z
New Revision: 875a85403f50f26e60a41fbb96139efa55114de9

URL: 
https://github.com/llvm/llvm-project/commit/875a85403f50f26e60a41fbb96139efa55114de9
DIFF: 
https://github.com/llvm/llvm-project/commit/875a85403f50f26e60a41fbb96139efa55114de9.diff

LOG: [clang] Silence "not all control paths return" diagnostic; NFC (#240528)

The switch is fully covered but MSVC diagnoses anyway

Added: 
    

Modified: 
    clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp 
b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
index 74014b58ad8453..33f2d4782db119 100644
--- a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+++ b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
@@ -326,6 +326,7 @@ class SimpleBoolModel final : public Environment::BoolModel 
{
       return *V_L == *V_R;
     }
     }
+    llvm_unreachable("fully covered switch");
   }
 
   // Updates atom assignments under the assumption that subformula `F`


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to