[LLVMbugs] [Bug 3028] New: Assertion `i < NumOperands && "getOperand() out of range!"' failed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 8 19:40:53 PST 2008


           Summary: Assertion `i < NumOperands && "getOperand() out of
                    range!"' failed
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu

Seen using r58928 on Ubuntu Hardy on x86.

regehr at john-home:~/volatile/tmp58$ llvm-gcc -O2 small.c
cc1: /home/regehr/llvm/include/llvm/User.h:93: llvm::Value*
llvm::User::getOperand(unsigned int) const: Assertion `i < NumOperands &&
"getOperand() out of range!"' failed.
small.c: In function ‘func_20’:
small.c:11: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

regehr at john-home:~/volatile/tmp58$ cat small.c

int g_187;
int g_204;
int g_434;

int func_89 (void)
  return 1;

void func_20 (int p_22)
  if (1 & p_22 | g_204 & (1 < g_187) - func_89 ())
      g_434 = 1;

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