r214103 - Fix MSVC warnings about falling off the end of a non-void function

Reid Kleckner reid at kleckner.net
Mon Jul 28 10:48:12 PDT 2014


Author: rnk
Date: Mon Jul 28 12:48:12 2014
New Revision: 214103

URL: http://llvm.org/viewvc/llvm-project?rev=214103&view=rev
Log:
Fix MSVC warnings about falling off the end of a non-void function

Modified:
    cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h

Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h?rev=214103&r1=214102&r2=214103&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h (original)
+++ cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h Mon Jul 28 12:48:12 2014
@@ -433,6 +433,7 @@ public:
 #include "ThreadSafetyOps.def"
 #undef TIL_OPCODE_DEF
     }
+    llvm_unreachable("invalid enum");
   }
 };
 





More information about the cfe-commits mailing list