Skip to content

llc crash on clang varargs output #3050

@regehr

Description

@regehr
Bugzilla Link 2678
Resolution DUPLICATE
Resolved on Aug 14, 2008 14:02
Version unspecified
OS Linux

Extended Description

This is seen on r54780 on Ubuntu Feisty on ia32.

[regehr@babel tmp7]$ clang small.c --emit-llvm -o - | llvm-as | opt -std-compile-opts | llc
small.c:7:1: warning: excess elements in array initializer
80725.22};
^~~~~~~~
1 diagnostic generated.
llc: ValueTypes.cpp:109: static llvm::MVT llvm::MVT::getMVT(const llvm::Type*, bool): Assertion `0 && "Unknown type!"' failed.
llc[0x893bdb4]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7cf3641]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xfb)[0xb7ceb43b]
llc(_ZN4llvm3MVT6getMVTEPKNS_4TypeEb+0x50d)[0x88e68dd]
Aborted (core dumped)

[regehr@babel tmp7]$ cat small.c
#include <stdarg.h>
static union tt3
{
}
t12 =
{
80725.22};
static struct tt1
{
};
float
callee_t0f (float tp2, union tt3 tp3, ...)
{
va_list ap;
typedef struct tt1 td0;
td0 t13;
t13 = va_arg (ap, td0);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilladuplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions