[LLVMbugs] [Bug 15553] New: Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /Users/eschnett/src/llvm-trunk/include/llvm/Support/Casting.h, line 231
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 20 12:12:05 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15553
Bug ID: 15553
Summary: Assertion failed: (isa<X>(Val) && "cast<Ty>() argument
of incompatible type!"), function cast, file
/Users/eschnett/src/llvm-trunk/include/llvm/Support/Ca
sting.h, line 231
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: schnetter at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10206
--> http://llvm.org/bugs/attachment.cgi?id=10206&action=edit
maxmag-BiDJUF.cl
/Users/eschnett/llvm-trunk/bin/clang -emit-llvm -c -target
x86_64-apple-darwin12.3.0 -o maxmag.bc -x cl ../vecmathlib/pocl/maxmag.cl
-include ../../../include/x86_64/types.h \
-include /Users/eschnett/src/pocl/include/_kernel.h
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file
/Users/eschnett/src/llvm-trunk/include/llvm/Support/Casting.h, line 231.
0 libLLVM-3.3svn.dylib 0x00000001113d8b18 llvm::sys::PrintStackTrace(__sFILE*)
+ 40
1 libLLVM-3.3svn.dylib 0x00000001113d9074 SignalHandler(int) + 564
2 libsystem_c.dylib 0x00007fff8ce9894a _sigtramp + 26
3 libLLVM-3.3svn.dylib 0x0000000110ad1f24 ThreadBinOpOverSelect(unsigned int,
llvm::Value*, llvm::Value*, Query const&, unsigned int) + 180
4 libLLVM-3.3svn.dylib 0x00000001113d8e26 abort + 22
5 libLLVM-3.3svn.dylib 0x00000001113d8e01 __assert_rtn + 81
6 libLLVM-3.3svn.dylib 0x0000000110e67162 llvm::Type::getVectorNumElements()
const + 82
7 libLLVM-3.3svn.dylib 0x0000000110f34e8a
llvm::InstCombiner::FoldSelectOpOp(llvm::SelectInst&, llvm::Instruction*,
llvm::Instruction*) + 154
8 libLLVM-3.3svn.dylib 0x0000000110f36e73
llvm::InstCombiner::visitSelectInst(llvm::SelectInst&) + 2243
9 libLLVM-3.3svn.dylib 0x0000000110f5523b
llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) + 5179
10 libLLVM-3.3svn.dylib 0x0000000110f55aa0
llvm::InstCombiner::runOnFunction(llvm::Function&) + 384
11 libLLVM-3.3svn.dylib 0x0000000110e5c63b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 347
12 libLLVM-3.3svn.dylib 0x0000000110e5c8db
llvm::FPPassManager::runOnModule(llvm::Module&) + 59
13 libLLVM-3.3svn.dylib 0x0000000110e5cc85
llvm::MPPassManager::runOnModule(llvm::Module&) + 517
14 libLLVM-3.3svn.dylib 0x0000000110e5d32c
llvm::PassManagerImpl::run(llvm::Module&) + 556
15 libLLVM-3.3svn.dylib 0x0000000110e5d51d
llvm::PassManager::run(llvm::Module&) + 13
16 clang 0x000000010fafec5a llvm::raw_ostream&
llvm::WriteGraph<clang::serialization::ModuleManager>(llvm::raw_ostream&,
clang::serialization::ModuleManager const&, bool, llvm::Twine const&) + 12522
17 clang 0x000000010fbf47b5
llvm::SmallVectorTemplateBase<llvm::DenseMap<clang::BaseSubobject, unsigned
long long, llvm::DenseMapInfo<clang::BaseSubobject> >, false>::grow(unsigned
long) + 32117
18 clang 0x000000010fc37304
clang::CanQual<clang::FunctionNoProtoType>::CreateUnsafe(clang::QualType) +
101556
19 clang 0x000000010fbf33fa
llvm::SmallVectorTemplateBase<llvm::DenseMap<clang::BaseSubobject, unsigned
long long, llvm::DenseMapInfo<clang::BaseSubobject> >, false>::grow(unsigned
long) + 27066
20 clang 0x000000010f9c22c6
std::__1::__tree<std::__1::pair<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit>,
std::__1::__map_value_compare<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit, std::__1::less<clang::edit::FileOffset>,
true>, std::__1::allocator<std::__1::pair<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit> >
>::destroy(std::__1::__tree_node<std::__1::pair<clang::edit::FileOffset,
clang::edit::EditedSource::FileEdit>, void*>*) + 5926
21 clang 0x000000010f99e3bd
llvm::SmallVectorTemplateBase<llvm::sys::Path, false>::grow(unsigned long) +
37901
22 clang 0x000000010f9641b2 void
std::__1::__tree_balance_after_insert<std::__1::__tree_node_base<void*>*>(std::__1::__tree_node_base<void*>*,
std::__1::__tree_node_base<void*>*) + 4930
23 clang 0x000000010f95ae02
24 clang 0x000000010f9616aa
std::__1::__deque_base<llvm::Region*, std::__1::allocator<llvm::Region*>
>::clear() + 24906
25 libdyld.dylib 0x00007fff94e367e1 start + 0
Stack dump:
0. Program arguments: /Users/eschnett/llvm-trunk/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-llvm-bc -disable-free -main-file-name maxmag.cl
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 134.9 -coverage-file
/Users/eschnett/src/pocl/lib/kernel/x86_64/maxmag.bc -resource-dir
/Users/eschnett/llvm-trunk/bin/../lib/clang/3.3 -include
../../../include/x86_64/types.h -include
/Users/eschnett/src/pocl/include/_kernel.h -fdebug-compilation-dir
/Users/eschnett/src/pocl/lib/kernel/x86_64 -ferror-limit 19 -fmessage-length 80
-stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o maxmag.bc -x cl
../vecmathlib/pocl/maxmag.cl
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Function Pass Manager' on module
'../vecmathlib/pocl/maxmag.cl'.
4. Running pass 'Combine redundant instructions' on function
'@_Z6maxmagDv2_fS_'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 177550)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/maxmag-BiDJUF.cl
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/maxmag-BiDJUF.sh
clang: note: diagnostic msg:
********************
make[4]: *** [maxmag.bc] Error 254
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130320/2979706b/attachment.html>
More information about the llvm-bugs
mailing list