r231455 - Silence C4715 'not all control paths return a value' warnings.

Yaron Keren yaron.keren at gmail.com
Thu Mar 5 23:49:14 PST 2015


Author: yrnkrn
Date: Fri Mar  6 01:49:14 2015
New Revision: 231455

URL: http://llvm.org/viewvc/llvm-project?rev=231455&view=rev
Log:
Silence C4715 'not all control paths return a value' warnings.


Modified:
    cfe/trunk/lib/Serialization/ASTReader.cpp

Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=231455&r1=231454&r2=231455&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Fri Mar  6 01:49:14 2015
@@ -6285,6 +6285,7 @@ static Decl *getPredefinedDecl(ASTContex
   case PREDEF_DECL_BUILTIN_VA_LIST_ID:
     return Context.getBuiltinVaListDecl();
   }
+  llvm_unreachable("PredefinedDeclIDs unknown enum value");
 }
 
 Decl *ASTReader::GetExistingDecl(DeclID ID) {





More information about the cfe-commits mailing list