[LLVMbugs] [Bug 11802] New: Assertion failed: (isPtrIV == IndVar->getType()->isPointerTy() && "IndVar type must match IVInit type"), function LinearFunctionTestReplace, file /usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp, line 159

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 19 04:35:42 PST 2012


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

             Bug #: 11802
           Summary: Assertion failed: (isPtrIV ==
                    IndVar->getType()->isPointerTy() && "IndVar type must
                    match IVInit type"), function
                    LinearFunctionTestReplace, file
                    /usr/src/lib/clang/libllvmscalaropts/../../../contrib/
                    llvm/lib/Transforms/Scalar/IndVarSimplify.cpp, line
                    159
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: c.kworr at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Happens on i386 host:
CPU: AMD Athlon(tm) XP 2500+ (1833.95-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Family = 6  Model = a  Stepping = 0
 
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>

When compiling last ghostscript 9.04 following happens:

clang  -DHAVE_MKSTEMP   -DHAVE_FONTCONFIG  -DHAVE_SETLOCALE  -DHAVE_DBUS   -O2
-pipe -fno-strict-aliasing -g -fPIC -DUPD_SIGNAL=
0 -I. 
-I/tmp/ports/usr/ports/print/ghostscript9/work/ghostscript-9.04/lcms/include 
-I/tmp/ports/usr/ports/print/ghostscript9/w
ork/ghostscript-9.04/jasper/src/libjasper/include  -I/usr/local/include/libpng 
-I/usr/local/include -I/usr/local/include/freety
pe2  -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations
-Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclar
ation-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H
-DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -pipe -fno-strict-
aliasing -DUSE_LIBICONV_GNU -DGS_DEVS_SHARED
-DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.04\" -I./soobj -I./base 
-DWHIC
H_CMS="lcms" -o ./soobj/siscale.o -c ./base/siscale.c
Assertion failed: (isPtrIV == IndVar->getType()->isPointerTy() && "IndVar type
must match IVInit type"), function LinearFunction
TestReplace, file
/usr/src/lib/clang/libllvmscalaropts/../../../contrib/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp,
line 1597
.
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple i386-unknown-freebsd9.0
-emit-obj -disable-free -main-file-name siscale.c
 -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose
-mconstructor-aliases -target-cpu i486 -momit-leaf-frame-pointer
 -g -coverage-file ./soobj/siscale.o -resource-dir /usr/bin/../lib/clang/3.0 -D
HAVE_MKSTEMP -D HAVE_FONTCONFIG -D HAVE_SETLOCAL
E -D HAVE_DBUS -D UPD_SIGNAL=0 -D HAVE_STDINT_H -D GX_COLOR_INDEX_TYPE=unsigned
long long -D USE_LIBICONV_GNU -D GS_DEVS_SHARED 
-D GS_DEVS_SHARED_DIR="/usr/local/lib/ghostscript/9.04" -D WHICH_CMS=lcms -I .
-I /tmp/ports/usr/ports/print/ghostscript9/work/g
hostscript-9.04/lcms/include -I
/tmp/ports/usr/ports/print/ghostscript9/work/ghostscript-9.04/jasper/src/libjasper/include
-I /u
sr/local/include/libpng -I /usr/local/include -I /usr/local/include/freetype2
-I ./soobj -I ./base -fmodule-cache-path /tmp/clan
g-module-cache -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations
-Wmissing-prototypes -Wwrite-strings -Wno-strict-ali
asing -Wdeclaration-after-statement -fconst-strings -ferror-limit 19
-fmessage-length 128 -fno-builtin -fgnu-runtime -fobjc-runt
ime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o ./soobj/sisc
ale.o -x c ./base/siscale.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module './base/siscale.c'.
4.      Running pass 'Loop Pass Manager' on function '@zoom_x'
5.      Running pass 'Induction Variable Simplification' on basic block
'%for.body20'
clang: error: unable to execute command: Abort trap: 6 (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diag
nostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/siscale-sPvTkk.i

Preprocessed source is at http://limbo.xim.bz/siscale-sPvTkk.i

FreeBSD clang version 3.0 (tags/RELEASE_30/final 145349) 20111210
Target: i386-unknown-freebsd9.0
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