]> granicus.if.org Git - clang/commitdiff
Fix MSVC "not all control paths return a value" warning.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 30 May 2019 09:39:45 +0000 (09:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 30 May 2019 09:39:45 +0000 (09:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362076 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/ObjCRuntime.h

index 2caebd58832aaac6f3dd78fcb78509c809114546..5329b38c20722b3b2ab1954fddff1c663e532fd9 100644 (file)
@@ -443,6 +443,7 @@ public:
     case WatchOS:
       return true;
     }
+    llvm_unreachable("bad kind");
   }
 
   /// Try to parse an Objective-C runtime specification from the given