<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - cast<Ty>() argument of incompatible type"
href="http://llvm.org/bugs/show_bug.cgi?id=21388">21388</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>cast<Ty>() argument of incompatible type
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Transformation Utilities
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>housel@acm.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13253" name="attach_13253" title="Preprocessed source and run script">attachment 13253</a> <a href="attachment.cgi?id=13253&action=edit" title="Preprocessed source and run script">[details]</a></span>
Preprocessed source and run script
Crash compiling code generated by the Open Dylan compiler C back-end.
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /Users/housel/src/llvm/llvm/include/llvm/Support/Casting.h,
line 237.
0 clang-3.6 0x0000000101c7289e
llvm::sys::PrintStackTrace(__sFILE*) + 46
1 clang-3.6 0x0000000101c73dcb
PrintStackTraceSignalHandler(void*) + 27
2 clang-3.6 0x0000000101c74215 SignalHandler(int) + 565
3 libsystem_platform.dylib 0x00007fff91cd5f1a _sigtramp + 26
4 libsystem_platform.dylib 0x0000000000000002 _sigtramp + 1848811778
5 clang-3.6 0x0000000101c73dfb raise + 27
6 clang-3.6 0x0000000101c73eb2 abort + 18
7 clang-3.6 0x0000000101c73e91 __assert_rtn + 129
8 clang-3.6 0x00000001007d09bc
llvm::cast_retty<llvm::IntegerType, llvm::Type*>::ret_type
llvm::cast<llvm::IntegerType, llvm::Type>(llvm::Type*) + 108
9 clang-3.6 0x00000001014e38b8
llvm::ConstantInt::get(llvm::Type*, unsigned long long, bool) + 40
10 clang-3.6 0x00000001017eac54
llvm::InstCombiner::transformSExtICmp(llvm::ICmpInst*, llvm::Instruction&) +
244
11 clang-3.6 0x00000001017eb955
llvm::InstCombiner::visitSExt(llvm::SExtInst&) + 1285
12 clang-3.6 0x00000001017a710b
llvm::InstVisitor<llvm::InstCombiner,
llvm::Instruction*>::visit(llvm::Instruction&) + 1067
13 clang-3.6 0x00000001017a2715
llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) + 2741
14 clang-3.6 0x00000001017a3767
llvm::InstCombiner::runOnFunction(llvm::Function&) + 567
15 clang-3.6 0x000000010166a7fb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 427
16 clang-3.6 0x00000001016dc061 (anonymous
namespace)::CGPassManager::RunPassOnSCC(llvm::Pass*, llvm::CallGraphSCC&,
llvm::CallGraph&, bool&, bool&) + 801
17 clang-3.6 0x00000001016db8ce (anonymous
namespace)::CGPassManager::RunAllPassesOnSCC(llvm::CallGraphSCC&,
llvm::CallGraph&, bool&) + 958
18 clang-3.6 0x00000001016db08c (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 476
19 clang-3.6 0x000000010166b514 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 1412
20 clang-3.6 0x000000010166adbe
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 302
21 clang-3.6 0x000000010166bc91
llvm::legacy::PassManager::run(llvm::Module&) + 33
22 clang-3.6 0x0000000102465d1d (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_ostream*) + 1517
23 clang-3.6 0x0000000102465522
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 114
24 clang-3.6 0x0000000102667b58
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 1736
25 clang-3.6 0x0000000103130614 clang::ParseAST(clang::Sema&,
bool, bool) + 1268
26 clang-3.6 0x00000001020bcc4a
clang::ASTFrontendAction::ExecuteAction() + 522
27 clang-3.6 0x0000000102665ac3
clang::CodeGenAction::ExecuteAction() + 3939
28 clang-3.6 0x00000001020bc1c8 clang::FrontendAction::Execute()
+ 120
29 clang-3.6 0x000000010204c469
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1017
30 clang-3.6 0x0000000102123f41
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3201
31 clang-3.6 0x0000000100335340 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 2496
32 clang-3.6 0x0000000100328b6b
ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef) + 171
33 clang-3.6 0x0000000100328050 main + 1264
34 libdyld.dylib 0x00007fff866f15c9 start + 1
35 libdyld.dylib 0x000000000000002c start + 2039540324
Stack dump:
0. Program arguments: /usr/local/bin/clang-3.6 -cc1 -triple
x86_64-apple-macosx10.10.0 -emit-obj -disable-free -main-file-name di.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -dwarf-column-info
-coverage-file /Users/housel/di.c -resource-dir
/usr/local/bin/../lib/clang/3.6.0 -O1 -fdebug-compilation-dir /Users/housel
-ferror-limit 19 -fmessage-length 80 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -o di.o -x c di.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'di.c'.
4. Running pass 'Combine redundant instructions' on function
'@KfloorSVgeneric_arithmeticMbig_integersM3I'
clang-3.6: error: unable to execute command: Illegal instruction: 4
clang-3.6: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 (220497)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
clang-3.6: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.6: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.6: note: diagnostic msg:
/var/folders/qp/29m5zhwn5tz249jmphcwc3mr0000gn/T/di-882096.c
clang-3.6: note: diagnostic msg:
/var/folders/qp/29m5zhwn5tz249jmphcwc3mr0000gn/T/di-882096.sh
clang-3.6: note: diagnostic msg:
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>