<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 --- - [ThinLTO] Assertion `(!*MappedOp || M.getVM().count(CMD->getValue()) || M.getVM().getMappedMD(Op)) && "Expected Value to be memoized"' failed."
href="https://llvm.org/bugs/show_bug.cgi?id=30248">30248</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[ThinLTO] Assertion `(!*MappedOp || M.getVM().count(CMD->getValue()) || M.getVM().getMappedMD(Op)) && "Expected Value to be memoized"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>twoh@fb.com
</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=17201" name="attach_17201" title="source file">attachment 17201</a> <a href="attachment.cgi?id=17201&action=edit" title="source file">[details]</a></span>
source file
repro:
clang++ -g2 -std=c++11 -flto=thin -c -o main.o main.cpp
clang++ -g2 -std=c++11 -flto=thin -c -o dst.o dst.cpp
clang++ -g2 -std=c++11 -flto=thin -c -o src.o src.cpp
clang++ -o /dev/null -B/usr/local/bin/gold -flto=thin main.o dst.o src.o
ld: /data/users/twoh/llvms/svn/llvm/lib/Transforms/Utils/ValueMapper.cpp:525:
llvm::Optional<llvm::Metadata*>
{anonymous}::MDNodeMapper::tryToMapOperand(const llvm::Metadata*): Assertion
`(!*MappedOp || M.getVM().count(CMD->getValue()) || M.getVM().getMappedMD(Op))
&& "Expected Value to be memoized"' failed.
clang-4.0: error: unable to execute command: Aborted (core dumped)
clang-4.0: error: linker command failed due to signal (use -v to see
invocation)
Tested with revision 280435</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>