<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 --- - SIGSEGV compiling LLVM IR with declared intrinsic"
href="https://llvm.org/bugs/show_bug.cgi?id=27090">27090</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SIGSEGV compiling LLVM IR with declared intrinsic
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</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>Bitcode Reader
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>code@nuew.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16105" name="attach_16105" title="clang's crash backtrace">attachment 16105</a> <a href="attachment.cgi?id=16105&action=edit" title="clang's crash backtrace">[details]</a></span>
clang's crash backtrace
The following LLVM IR, compiled with `clang crash.ll`, results in a
segmentation fault.
Steps to reproduce:
1) Place this code in 'crash.ll':
declare i64 @llvm.read_register(metadata)
define i32 @main() {
call i64 @llvm.read_register(metadata !"rsp")
ret i32 0
}
2) Compile the code with `clang crash.ll`.
3) Clang segfaults, with the attached backtrace.
Clang should either fail compilation with an error or compilation should
succeed.
Clang and llvm-libs were built on Fri 15 Jan 2016 and were downloaded
precompiled from Arch Linux's repositories.</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>