<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 --- - crash with address_space(256)"
href="http://llvm.org/bugs/show_bug.cgi?id=18549">18549</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>crash with address_space(256)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arigo@tunes.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=11895" name="attach_11895" title="Preprocessed source">attachment 11895</a> <a href="attachment.cgi?id=11895&action=edit" title="Preprocessed source">[details]</a></span>
Preprocessed source
Attached an example where clang-trunk crashes with an assertion, when compiling
a program that makes heavy use of address_space(256):
SelectionDAGBuilder.cpp:4599: const char*
llvm::SelectionDAGBuilder::visitIntrinsicCall(const llvm::CallInst&, unsigned
int): Assertion
`cast<PointerType>(I.getArgOperand(0)->getType())->getAddressSpace() < 256 &&
cast<PointerType>(I.getArgOperand(1)->getType())->getAddressSpace() < 256 &&
"Unknown address space"
A preliminary guess is that it's a memcpy() inserted automatically by some
earlier pass. All explicit memcpy() in the C source are with "char *" or "void
*" arguments with no address_space.
It always fails for me on Linux 64 when running "clang frame-22da9c.c",
apparently at any "-O" level.</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>