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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 23 16:17:06 PDT 2011


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

Jonathan Schleifer <js-llvm-bugzilla at webkeks.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #9 from Jonathan Schleifer <js-llvm-bugzilla at webkeks.org> 2011-05-23 18:17:05 CDT ---
It seems your patch introduced a segfault in another file (at least I get this
after updating to the latest rev):

Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-netbsd5.1.0. -emit-obj -disable-free -main-file-name
OFStreamObserver.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 OFStreamObserver.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 OFStreamObserver.lib.o -x objective-c OFStreamObserver.m
1.      OFStreamObserver.m:278:1: current parser token '-'
2.      OFStreamObserver.m:258:1: LLVM IR generation of declaration
'OFStreamObserver::addStreamToObserveForReading:'
3.      OFStreamObserver.m:259:1: LLVM IR generation of compound statement
('{}')
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)

Preprocessed file: http://sprunge.us/aLaU

If it is not related, feel free to close again and I'll create a new bug.

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