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

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 02:40:42 PDT 2023


Author: Simon Pilgrim
Date: 2023-05-19T10:40:14+01:00
New Revision: c10138a54f7f50c7a4d92b79a8887c51c52e2c20

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

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

Added: 
    

Modified: 
    clang/lib/Interpreter/Interpreter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index bf0c98785ab7..e41024a25652 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -540,6 +540,7 @@ class RuntimeInterfaceBuilder
           E->getBeginLoc(), Args, E->getEndLoc());
     }
     }
+    llvm_unreachable("Unhandled Interpreter::InterfaceKind");
   }
 
   Interpreter::InterfaceKind VisitRecordType(const RecordType *Ty) {


        


More information about the cfe-commits mailing list