]> granicus.if.org Git - clang/commitdiff
disable my commit from yesterday, fixing a regression test failure.
authorChris Lattner <sabre@nondot.org>
Wed, 19 Dec 2007 17:49:45 +0000 (17:49 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 19 Dec 2007 17:49:45 +0000 (17:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45204 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaType.cpp

index fa9c9ed6811a74acd0a893498b1d20d3d7b99a9b..83846876ac1aa26f2ea4a6509e96007c32aedf55 100644 (file)
@@ -264,7 +264,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
       const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun;
         
       // C99 6.7.5.3p1: The return type may not be a function or array type.
-      if (T->isArrayType() || T->isFunctionType()) {
+      if (0 && (T->isArrayType() || T->isFunctionType())) {
         Diag(DeclType.Loc, diag::err_func_returning_array_function,
              T.getAsString());
         T = Context.IntTy;