[LLVMbugs] [Bug 2777] New: ice: this->replaceAllUsesWith(this) is NOT valid!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Sep 6 18:52:29 PDT 2008


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

           Summary: ice: this->replaceAllUsesWith(this) is NOT valid!
           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


This is seen using r55873 on Ubuntu Hardy on ia32.

regehr at john-home:~/volatile/tmp27$ llvm-gcc -O2 small.c
cc1: Value.cpp:317: void llvm::Value::replaceAllUsesWith(llvm::Value*):
Assertion `New != this && "this->replaceAllUsesWith(this) is NOT valid!"'
failed.
small.c:43: 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/tmp27$ cat small.c

typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
static inline unsigned long int
mod_rhs (long int rhs)
{
}
static inline unsigned long int
div_rhs (long int rhs)
{
  if (rhs)
    return 1;
}

uint32_t g_103;
int32_t func_135 (uint8_t p_137, uint32_t p_138, int32_t p_140);
uint32_t
func_127 (int32_t p_129)
{
  uint32_t l_181;
  if (g_103)
    {
      return 1;
    }
  for (l_181 = 1; l_181; ++l_181)
    {
      if (p_129)
        {
          if (g_103)
            {
            }
          else
            for (1; p_129; ++p_129)
              {
              }
          func_135 (func_135 (1, (mod_rhs (div_rhs (p_129))), 1), 1, 1);
        }
    }
}
int32_t
func_135 (uint8_t p_137, uint32_t p_138, int32_t p_140)
{
}


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