[cfe-commits] [PATCH] Fix Empty Return

David Greene dag at cray.com
Tue Jan 8 13:18:01 PST 2013


Return a value to avoid an empty return warning.
---
 llvm/tools/clang/lib/AST/ASTContext.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/llvm/tools/clang/lib/AST/ASTContext.cpp b/llvm/tools/clang/lib/AST/ASTContext.cpp
index dc398f3..e0e2478 100644
--- a/llvm/tools/clang/lib/AST/ASTContext.cpp
+++ b/llvm/tools/clang/lib/AST/ASTContext.cpp
@@ -4870,6 +4870,7 @@ static char getObjCEncodingForPrimitiveKind(const ASTContext *C,
 #include "clang/AST/BuiltinTypes.def"
       llvm_unreachable("invalid builtin type for @encode");
     }
+    return 0;
 }
 
 static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) {
-- 
1.7.8.4




More information about the cfe-commits mailing list