[LLVMbugs] [Bug 7593] New: Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal BitCast")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 8 04:06:46 PDT 2010


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

           Summary: Assertion failed: (castIsValid(getOpcode(), S, Ty) &&
                    "Illegal BitCast")
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: themiwi at users.sourceforge.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


While compiling a file on Mac OS X 10.6.4 with clang++ 2.8 (trunk 107757),
clang++ aborted with the following error message:

Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"),
function BitCastInst, file
/Users/mwild/Downloads/llvm/lib/VMCore/Instructions.cpp, line 2647.
Stack dump:
0.    Program arguments: /Users/mwild/root/software/clang-svn-dbg/bin/clang
-cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name IPstream.C.i -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -resource-dir
/Users/mwild/root/software/clang-svn-dbg/lib/clang/2.8 -ferror-limit 19
-fmessage-length 190 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o IPstream.C.o -x c++
CMakeFiles/OpenFOAM.dir/db/IOstreams/Pstreams/IPstream.C.i 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.   
/Users/mwild/Projects/FreeFOAM/src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C:71:29:
Generating code for declaration 'Foam::IPstream::readFromBuffer'
4.   
/Users/mwild/Projects/FreeFOAM/src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C:72:1:
LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)


The preprocessed source is attached. Compile with

$ clang++ -c -x c++ IPstream.C.i

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