[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


           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>

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

        va_start(ap, fmt);


it crashes clang with:

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

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