[LLVMbugs] [Bug 2966] New: double va_end crashes clang

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Oct 28 05:05:24 PDT 2008


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

           Summary: double va_end crashes clang
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


when you use va_end twice as in:

#include <stdarg.h>

void
run_err(const char *fmt, ...)
{
        va_list ap;

        va_start(ap, fmt);
        va_end(ap);

        va_end(ap);
}

it crashes clang with:

Assertion failed: (E && !hasAggregateLLVMType(E->getType()) && "Invalid scalar
expression to emit"), function EmitScalarExpr, file CGExprScalar.cpp, line
1179.


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



More information about the llvm-bugs mailing list