]> granicus.if.org Git - clang/commitdiff
Pacify gcc's -Wreturn-type
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 16 Feb 2012 22:15:50 +0000 (22:15 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 16 Feb 2012 22:15:50 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150731 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprCXX.cpp

index 718010b81ed4883a551c89cf81e603d28b3288b3..f52f88105058de8b22ba3b7d0e55b5c69eff2f08 100644 (file)
@@ -120,6 +120,7 @@ SourceLocation CXXNewExpr::getEndLoc() const {
   case ListInit:
     return getInitializer()->getSourceRange().getEnd();
   }
+  llvm_unreachable("bogus initialization style");
 }
 
 // CXXDeleteExpr