[LLVMbugs] [Bug 68] llvmgcc asserts when compiling functions renamed with asm's

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Wed Oct 29 11:23:49 PST 2003


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=68

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From sabre at nondot.org  2003-10-29 13:23 -------
This is fixed by this patch to the C front-end:

$ diff -u llvm-representation.c-old llvm-representation.c
--- llvm-representation.c-old   2003-10-29 13:19:17.000000000 -0600
+++ llvm-representation.c       2003-10-29 13:19:23.000000000 -0600
@@ -772,10 +772,8 @@
   assert(Ty->ID == FunctionTyID && "Function isn't a function type?");
 
   /* If this function got forwarded away, don't print it! */
-  if (Fn->ForwardedFunction) {
-    assert(isPrototype &&"Cannot forward away from a function implementation!");
+  if (Fn->ForwardedFunction)
     return;
-  }
 
   if (isPrototype)
     fprintf(F, "declare ");   /* Function prototype? */

-------------

Tested as test/Regression/CFrontend/2003-10-29-AsmRename.c





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list