[llvm] a777a93 - Fix MSVC "not all control paths return a value" warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 09:32:24 PDT 2024


Author: Simon Pilgrim
Date: 2024-08-29T17:31:55+01:00
New Revision: a777a93118a0ca71e19ac764a57a94f1be227dbb

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

LOG: Fix MSVC "not all control paths return a value" warning. NFC.

Added: 
    

Modified: 
    llvm/utils/TableGen/IntrinsicEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp
index 06b430ae011405..70ccecf7752af7 100644
--- a/llvm/utils/TableGen/IntrinsicEmitter.cpp
+++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp
@@ -451,6 +451,7 @@ static AttributeSet getIntrinsicArgAttributeSet(LLVMContext &C, unsigned ID) {
         case CodeGenIntrinsic::Dereferenceable:
           return "Dereferenceable";
         }
+        llvm_unreachable("Unknown CodeGenIntrinsic::ArgAttrKind enum");
       };
 
       OS << formatv(R"(


        


More information about the llvm-commits mailing list