<html>
<head>
<base href="https://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 --- - Assert during DAG combine: typename cast_retty<X, Y>::ret_type llvm::cast(Y &) [X = llvm::ConstantSDNode, Y = llvm::SDUse]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed." href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23601&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=F3ZpMEzWxCzwgFmO4G3-iXQ02xheDpPIN9roS7uVELM&s=Xc5NAfx12J09bsH4a-QALAEwwuvfMjeBdZgTSKx3rd0&e=">23601</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assert during DAG combine: typename cast_retty<X, Y>::ret_type llvm::cast(Y &) [X = llvm::ConstantSDNode, Y = llvm::SDUse]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.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=14351" name="attach_14351" title="repro source">attachment 14351</a> <a href="attachment.cgi?id=14351&action=edit" title="repro source">[details]</a></span>
repro source
With Clang 237835:
clang-3.6: ../include/llvm/Support/Casting.h:230: typename cast_retty<X,
Y>::ret_type llvm::cast(Y &) [X = llvm::ConstantSDNode, Y = llvm::SDUse]:
Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
#0 0x21ef0ae llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/work/llvm/build.debug/../lib/Support/Unix/Signals.inc:436:15
#1 0x21f0029 PrintStackTraceSignalHandler(void*)
/work/llvm/build.debug/../lib/Support/Unix/Signals.inc:495:1
#2 0x21f0547 SignalHandler(int)
/work/llvm/build.debug/../lib/Support/Unix/Signals.inc:210:62
#3 0x7fbb5e44d340 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#4 0x7fbb5d66ecc9 gsignal
/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x7fbb5d6720d8 abort /build/buildd/eglibc-2.19/stdlib/abort.c:91:0
#6 0x7fbb5d667b86 __assert_fail_base
/build/buildd/eglibc-2.19/assert/assert.c:92:0
#7 0x7fbb5d667c32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#8 0x2732df6 llvm::cast_retty<llvm::ConstantSDNode, llvm::SDUse>::ret_type
llvm::cast<llvm::ConstantSDNode, llvm::SDUse>(llvm::SDUse&)
/work/llvm/build.debug/../include/llvm/Support/Casting.h:231:10
#9 0x27287a9 llvm::SDNode::getConstantOperandVal(unsigned int) const
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/SelectionDAG.cpp:6687:10
#10 0x150b00d PerformCMOVCombine(llvm::SDNode*, llvm::SelectionDAG&,
llvm::TargetLowering::DAGCombinerInfo&, llvm::X86Subtarget const*)
/work/llvm/build.debug/../lib/Target/X86/X86ISelLowering.cpp:21890:37
#11 0x15040ee llvm::X86TargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const
/work/llvm/build.debug/../lib/Target/X86/X86ISelLowering.cpp:24307:36
#12 0x2628198 (anonymous namespace)::DAGCombiner::combine(llvm::SDNode*)
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1411:12
#13 0x2627972 (anonymous namespace)::DAGCombiner::Run(llvm::CombineLevel)
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1257:18
#14 0x2627412 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AliasAnalysis&, llvm::CodeGenOpt::Level)
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/DAGCombiner.cpp:13995:3
#15 0x27a5317 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:776:5
#16 0x27a46ef
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&)
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:621:1
#17 0x27a454a llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function
const&)
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1314:5
#18 0x27a26be
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/work/llvm/build.debug/../lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:465:33
#19 0x146504b (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/work/llvm/build.debug/../lib/Target/X86/X86ISelDAGToDAG.cpp:168:7
#20 0x192c61e llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/work/llvm/build.debug/../lib/CodeGen/MachineFunctionPass.cpp:40:10
#21 0x1d403ad llvm::FPPassManager::runOnFunction(llvm::Function&)
/work/llvm/build.debug/../lib/IR/LegacyPassManager.cpp:1537:23
#22 0x1d406b8 llvm::FPPassManager::runOnModule(llvm::Module&)
/work/llvm/build.debug/../lib/IR/LegacyPassManager.cpp:1557:16
#23 0x1d40d79 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&)
/work/llvm/build.debug/../lib/IR/LegacyPassManager.cpp:1615:23
#24 0x1d4096e llvm::legacy::PassManagerImpl::run(llvm::Module&)
/work/llvm/build.debug/../lib/IR/LegacyPassManager.cpp:1722:16
#25 0x1d41221 llvm::legacy::PassManager::run(llvm::Module&)
/work/llvm/build.debug/../lib/IR/LegacyPassManager.cpp:1755:10
#26 0x28acc86 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_pwrite_stream*)
/work/llvm/build.debug/../tools/clang/lib/CodeGen/BackendUtil.cpp:650:5
#27 0x28ac5b2 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*) /work/llvm/build.debug/../tools/clang/lib/
CodeGen/BackendUtil.cpp:662:3
#28 0x288ec93 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/work/llvm/build.debug/../tools/clang/lib/CodeGen/CodeGenAction.cpp:183:7
#29 0x35b6744 clang::ParseAST(clang::Sema&, bool, bool)
/work/llvm/build.debug/../tools/clang/lib/Parse/ParseAST.cpp:151:3
#30 0x24315d9 clang::ASTFrontendAction::ExecuteAction()
/work/llvm/build.debug/../tools/clang/lib/Frontend/FrontendAction.cpp:538:1
#31 0x288d838 clang::CodeGenAction::ExecuteAction()
/work/llvm/build.debug/../tools/clang/lib/CodeGen/CodeGenAction.cpp:741:1
#32 0x24310c0 clang::FrontendAction::Execute()
/work/llvm/build.debug/../tools/clang/lib/Frontend/FrontendAction.cpp:443:7
#33 0x23e936b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/work/llvm/build.debug/../tools/clang/lib/Frontend/CompilerInstance.cpp:815:7
#34 0x2589db8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/work/llvm/build.debug/../tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222:18
#35 0xa6aee7 cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
/work/llvm/build.debug/../tools/clang/tools/driver/cc1_main.cpp:110:13
#36 0xa5ff93 ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/work/llvm/build.debug/../tools/clang/tools/driver/driver.cpp:369:12
#37 0xa5f61b main
/work/llvm/build.debug/../tools/clang/tools/driver/driver.cpp:415:12
#38 0x7fbb5d659ec5 __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:321:0
#39 0xa5f0b3 _start
(/usr/local/google/work/llvm/build.debug/bin/clang-3.6+0xa5f0b3)</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>