[clang] aebe312 - Silence a "not all control paths return a value" warning; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 28 04:53:20 PDT 2023


Author: Aaron Ballman
Date: 2023-08-28T07:52:47-04:00
New Revision: aebe312c03a686af397c5e572e1ac9f325624734

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

LOG: Silence a "not all control paths return a value" warning; NFC

Added: 
    

Modified: 
    clang/include/clang/AST/Expr.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 8d1235be78a4ad..c9315de8024e2f 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -6488,6 +6488,7 @@ class AtomicExpr : public Expr {
     return #ID;
 #include "clang/Basic/Builtins.def"
     }
+    llvm_unreachable("not an atomic operator?");
   }
   unsigned getNumSubExprs() const { return NumSubExprs; }
 


        


More information about the cfe-commits mailing list