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

include/clang/Analysis/ConstructionContext.h

index 48e0540803af7e4b280d0e514c270d675d7c7df2..aee67865df25043f2293548689ae2b25b1af909a 100644 (file)
@@ -57,6 +57,7 @@ public:
       case ArgumentKind:            return "construct into argument";
       case InitializerKind:         return "construct into member variable";
     };
+    llvm_unreachable("Unknown ItemKind");
   }
 
 private: