[LLVMbugs] [Bug 9994] New: assertion "isa<X>(Val) && "cast<Ty>() argument of incompatible type!"" failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 23 13:22:15 PDT 2011


           Summary: assertion "isa<X>(Val) && "cast<Ty>() argument of
                    incompatible type!"" failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: js-llvm-bugzilla at webkeks.org
                CC: llvmbugs at cs.uiuc.edu

assertion "isa<X>(Val) && "cast<Ty>() argument of incompatible type!"" failed:
file "/encrypted/home/js/llvm/include/llvm/Support/Casting.h", line 194,
function "typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&)
[with X = llvm::Function, Y = llvm::Constant*]"
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-netbsd5.1.0. -emit-llvm-bc -disable-free -main-file-name
OFXMLParser.m -pic-level 2 -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.16.1 -momit-leaf-frame-pointer -g -coverage-file OFXMLParser.lib.o
-resource-dir /usr/local/bin/../lib/clang/3.0 -D PIC -I . -I .. -I exceptions
-O2 -Wall -Wwrite-strings -Wcast-align -Wpointer-arith -Werror -std=gnu99
-fconst-strings -fconstant-string-class OFConstantString -ferror-limit 19
-fmessage-length 80 -fblocks -fobjc-exceptions -fexceptions -fgnu-runtime
-fno-constant-cfstrings -fno-common -fdiagnostics-show-option
-fcolor-diagnostics -o OFXMLParser.lib.o -x objective-c OFXMLParser.m
1.      OFXMLParser.m:1078:1: current parser token '@'
2.      OFXMLParser.m:121:1: LLVM IR generation of declaration 'OFXMLParser'
clang: error: unable to execute command: Abort trap (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see

Clang won't even produce a perprocessed file with -emit-llvm

Source file:

clang version 3.0 (trunk 131912)

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