http://llvm.org/bugs/show_bug.cgi?id=14886

             Bug #: 14886
           Summary: Dragonegg crashes with prototype-less sret decl, like
                    (sret, ...)
           Product: dragonegg
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


/* testcase.c */
struct R {int a[8];};
extern struct R x(/*void*/);
struct R g(void) {return x();}

gcc47 -fplugin=dragonegg.so -S testcase.c -o testcase.ll -flto
Attribute 'sret' cannot be used for vararg call arguments!
  %0 = call %struct.R (...)* bitcast (void (%struct.R*, ...)* @x to %struct.R
(...)*)(%struct.R* noalias sret %agg.result) nounwind
Broken module found, compilation aborted!

clang/tools/c-index-test is affected.

FYI, dragonegg doesn't crash with "extern struct R x(void);"

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to