From: Chris Lattner Date: Wed, 19 Dec 2007 17:49:45 +0000 (+0000) Subject: disable my commit from yesterday, fixing a regression test failure. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=852e311512b9ac192e7718afb562ffa42f492538;p=clang disable my commit from yesterday, fixing a regression test failure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45204 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaType.cpp b/Sema/SemaType.cpp index fa9c9ed681..83846876ac 100644 --- a/Sema/SemaType.cpp +++ b/Sema/SemaType.cpp @@ -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;