[LLVMbugs] [Bug 112] casting a string constant to void crashes llvm-gcc
    bugzilla-daemon at zion.cs.uiuc.edu 
    bugzilla-daemon at zion.cs.uiuc.edu
       
    Wed Nov 12 14:23:20 PST 2003
    
    
  
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=112
sabre at nondot.org changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
------- Additional Comments From sabre at nondot.org  2003-11-12 16:23 -------
This is now fixed.  The patch:
$ diff -u llvm-expand.c~ llvm-expand.c
--- llvm-expand.c~      2003-11-08 22:13:27.000000000 -0600
+++ llvm-expand.c       2003-11-12 16:21:24.000000000 -0600
@@ -5064,7 +5064,8 @@
     break;
 
   case STRING_CST:
-    llvm_expand_constructor(Fn, exp, DestLoc, 0);
+    if (DestLoc)
+      llvm_expand_constructor(Fn, exp, DestLoc, 0);
     break;
   case CONSTRUCTOR:
     assert(isDestTyComposite && "Constructor for non-composite type?");
------- 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