[LLVMbugs] [Bug 8582] New: Assertion `N.getNode()->getNodeId() != NewNode && "Mapped to new node!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 10 11:25:18 PST 2010


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

           Summary: Assertion `N.getNode()->getNodeId() != NewNode &&
                    "Mapped to new node!"' 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, chenyang at cs.utah.edu


[regehr at n7 tmp700]$ clang -v

clang version 2.9 (trunk 118666)
Target: i386-pc-linux-gnu
Thread model: posix

[regehr at n7 tmp700]$ clang -O2 -c small.c -w

clang: LegalizeTypes.cpp:622: void
llvm::DAGTypeLegalizer::RemapValue(llvm::SDValue&): Assertion
`N.getNode()->getNodeId() != NewNode && "Mapped to new node!"' failed.
0  clang 0x093ebbd8
Stack dump:
0.    Program arguments:
/mnt/local/randomtest/compiler-install/llvm-gcc-r118666-install/bin/clang -cc1
-triple i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -target-linker-version 2.20.1 -resource-dir
/mnt/local/randomtest/compiler-install/llvm-gcc-r118666-install/bin/../lib/clang/2.9
-O2 -w -ferror-limit 19 -fmessage-length 108 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o small.o -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 'X86 DAG->DAG Instruction Selection' on function '@uint82'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

[regehr at n7 tmp700]$ cat small.c

struct S0
{
  const int int32f0;
  const int uint16f1;
  unsigned char f3;
  int f4;
};

struct S1
{
  struct S0 f0;
  signed f1:3;
  unsigned f2:22;
  signed f3:1;
  unsigned f4:7;
  const signed f5:14;
  signed f6:12;
};

struct S2
{
  unsigned char f0;
  const int uint32f1;
  struct S0 f2;
  struct S0 f3;
  const struct S1 f4;
  unsigned char f5;
  struct S0 f6;
  unsigned char f7;
};

struct S3
{
  struct S2 f0;
  signed f1:29;
  unsigned char f2;
  const struct S0 f3;
  int f4;
};

unsigned char g_419;
unsigned char *g_426 = &g_419;

struct S1 g_564 = {
  1, 1, 0, 0x426E79C4
};

void uint82 (int * p_13, unsigned char p_14)
{
  unsigned char t_817;
  if (t_817 = *g_426, t_817)
    {
      int t_843;
      unsigned char t_844;
      struct S1 l_827 = {
    -5, 1, 0,
      };
      struct S3 l_833 = {
    1, 0, 7, 1, 0xEF6AB0B8
      };
      for (g_564.f0.f4; g_564.f0.f4; g_564.f0.f4 = g_564.f0.f4, +0)
    {
      *p_13 |= func_96 (l_827, l_833, 0);
    }
      for (l_833.f4;
       l_833.f4 > 0;
       l_833.f4 = (t_843 = l_833.f4, 1 > 0 && 1 > 0
               && t_843 > 2147483647 - 1 || t_843 < 0
               && t_844 < 0 ? t_843 : t_843 + 1))
    *g_426 = 0;
    }
}

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