[LLVMbugs] [Bug 8249] New: Assertion `!empty() && "Call to beginIndex() on empty interval."' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 27 20:49:18 PDT 2010


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

           Summary: Assertion `!empty() && "Call to beginIndex() on empty
                    interval."' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


regehr at john-home:~/volatile/bugs/tmp334$ clang -v
clang version 2.9 (trunk 114920)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/bugs/tmp334$ clang -O1 -c -w small.c
clang:
/home/regehr/z/compiler-build/llvm-r114920/include/llvm/CodeGen/LiveInterval.h:366:
llvm::SlotIndex llvm::LiveInterval::beginIndex() const: Assertion `!empty() &&
"Call to beginIndex() on empty interval."' failed.
0  clang 0x093a2e78
Stack dump:
0.      Program arguments:
/home/regehr/z/compiler-install/llvm-gcc-r114920-install/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.20.1 -resource-dir
/home/regehr/z/compiler-install/llvm-gcc-r114920-install/lib/clang/2.9 -O1 -w
-ferror-limit 19 -fmessage-length 88 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-aKCZIp.s -x c small.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'small.c'.
4.      Running pass 'Linear Scan Register Allocator' on function '@uint321'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
regehr at john-home:~/volatile/bugs/tmp334$ cat small.c
typedef int int32_t;
typedef unsigned char uint8_t;
struct S0
{
  uint8_t f0;
};
struct S1
{
  struct S0 f1;
  uint8_t f2;
};
struct S2
{
  struct S1 f0;
  int32_t f1;
  uint8_t f2;
};
uint8_t g_2;
uint8_t g_4[4][3] = {
};

uint8_t g_48;
struct S1 g_54 = {
  0, 0x61
};

uint8_t *g_79 = &g_48;
struct S2 g_137 = {
  0, 1, 0, 0x3A
};

uint8_t **g = &g_79;
uint321 (void)
{
  uint8_t **l_212 = &g_79;
  uint8_t *l_224[5];
  struct S2 l_214 = {
    0,
  };
  int32_t *l_220 = &l_214.f1;
lbl_223:for (0; g; 0 > 0 && 0 > 0 || 0 < 0 && 0 < 0 ? : +0)
    {
    }
lbl_228:*l_220 ^=
    g_4[1][2] <= func (0), 1 * 8 ? : 0 << g_54.f2, func_50 (l_212, l_214.f2),
    0;
  if (*g_79)
    {
      for (l_214.f0.f1.f0 = 1;
           l_214.f0.f1.f0; l_214.f0.f1.f0 = (l_214.f0.f1.f0, +0))
        if (l_214.f0.f1.f0)
          goto lbl_223;
      func_23 (l_224[1], l_214, g_137.f0.f1);
      if (l_214.f0.f1.f0)
        goto lbl_228;
    }
  else if (g_2)
    goto lbl_228;
}

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