[cfe-commits] r77176 - in /cfe/trunk: lib/AST/ASTContext.cpp test/Sema/return.c

Mike Stump mrs at apple.com
Sun Jul 26 17:44:24 PDT 2009


Author: mrs
Date: Sun Jul 26 19:44:23 2009
New Revision: 77176

URL: http://llvm.org/viewvc/llvm-project?rev=77176&view=rev
Log:
Fix PR4624.

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp
    cfe/trunk/test/Sema/return.c

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=77176&r1=77175&r2=77176&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Sun Jul 26 19:44:23 2009
@@ -3442,8 +3442,8 @@
     if (allLTypes) return lhs;
     if (allRTypes) return rhs;
     return getFunctionType(retType, proto->arg_type_begin(),
-                           proto->getNumArgs(), lproto->isVariadic(),
-                           lproto->getTypeQuals(), NoReturn);
+                           proto->getNumArgs(), proto->isVariadic(),
+                           proto->getTypeQuals(), NoReturn);
   }
 
   if (allLTypes) return lhs;

Modified: cfe/trunk/test/Sema/return.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/return.c?rev=77176&r1=77175&r2=77176&view=diff

==============================================================================
--- cfe/trunk/test/Sema/return.c (original)
+++ cfe/trunk/test/Sema/return.c Sun Jul 26 19:44:23 2009
@@ -187,3 +187,6 @@
   }
   done: ;
 }
+
+void test28() __attribute__((noreturn));
+void test28(x) { while (1) { } }





More information about the cfe-commits mailing list