[LLVMbugs] [Bug 90] [C++] Initializing array with constructable objects fail

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Tue Nov 4 21:37:47 PST 2003


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

sabre at nondot.org changed:

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



------- Additional Comments From sabre at nondot.org  2003-11-04 23:37 -------
Fixed like this:

$ diff -u llvm-expand.c~ llvm-expand.c
--- llvm-expand.c~      2003-11-04 12:31:40.000000000 -0600
+++ llvm-expand.c       2003-11-04 23:30:18.000000000 -0600
@@ -3145,7 +3145,10 @@
       if (llvm_type_is_composite(ExpTy)) {
         if (TREE_CODE(value) == COMPOUND_LITERAL_EXPR) {
           llvm_expand_expr(Fn, value, Offset);
+        } else if (TREE_CODE(value) == TARGET_EXPR) {
+          llvm_expand_expr(Fn, value, Offset);
         } else {
+          assert(TREE_CODE(value) == CONSTRUCTOR);
           llvm_expand_constructor(Fn, value, Offset, isVolatile);
         }
         




------- 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