[LLVMbugs] [Bug 6126] New: ice: argument of incompatible type!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Jan 23 19:26:20 PST 2010


           Summary: ice: argument of incompatible type!
           Product: new-bugs
           Version: trunk
          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

regehr at john-home:~/volatile/bugs/tmp262$ clang -O small.c
clang: /home/regehr/z/tmp/llvm-r94324/include/llvm/Support/Casting.h:199:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::AllocaInst, Y = llvm::Value*]: Assertion `isa<X>(Val) && "cast<Ty>()
argument of incompatible type!"' failed.
0  clang 0x09111cb8
Stack dump:
0.      Program arguments: /home/regehr/z/tmp/llvm-gcc-r94324-install/bin/clang
-cc1 -triple i386-pc-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -target-cpu pentium4 -resource-dir
/home/regehr/z/tmp/llvm-gcc-r94324-install/lib/clang/1.1 -O2 -fmessage-length
80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-5RrhCE.s -x c small.c 
1.      <eof> parser at end of file
2.      Per-function optimization
3.      Running pass 'Scalar Replacement of Aggregates' on function '@func_36'
clang: error: compiler command failed due to signal 6 (use -v to see

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

struct S0
  const int uint32f0;
  unsigned char f1;

int g_4[6][9][1][1][1];
int g_7;
int *g_12 = &g_4[5][8][0][0][0];

int func_75 (int, int, struct S0);

int *func_36 (uint16p38)
  int l_118[10];
  int *const l_121 = &g_7;
  struct S0 l_122[1][1][1] = {
  l_118[1] = 0;
  *g_12 = func_75 (l_118[1], *g_12 < (int)l_121, l_122[0][0][0]);
  return 0;

regehr at john-home:~/volatile/bugs/tmp262$ clang -v

clang version 1.1 (trunk 94324)
Target: i386-pc-linux-gnu
Thread model: posix

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