[cfe-commits] r93743 - /cfe/trunk/include/clang/AST/TypeLocVisitor.h

Mike Stump mrs at apple.com
Mon Jan 18 10:41:44 PST 2010


Author: mrs
Date: Mon Jan 18 12:41:43 2010
New Revision: 93743

URL: http://llvm.org/viewvc/llvm-project?rev=93743&view=rev
Log:
Silence a control reaches end of function warning.  Patch by Enea
Zaffanella.

Modified:
    cfe/trunk/include/clang/AST/TypeLocVisitor.h

Modified: cfe/trunk/include/clang/AST/TypeLocVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLocVisitor.h?rev=93743&r1=93742&r2=93743&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/TypeLocVisitor.h (original)
+++ cfe/trunk/include/clang/AST/TypeLocVisitor.h Mon Jan 18 12:41:43 2010
@@ -43,6 +43,7 @@
     case TypeLoc::CLASS: DISPATCH(CLASS##TypeLoc);
 #include "clang/AST/TypeLocNodes.def"
     }
+    llvm_unreachable("unexpected type loc class!");
   }
 
 #define TYPELOC(CLASS, PARENT)      \





More information about the cfe-commits mailing list