<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Assertion `!FoundVal && "Key already in new map?"' failed after D6594"
href="https://bugs.llvm.org/show_bug.cgi?id=51232">51232</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `!FoundVal && "Key already in new map?"' failed after D6594
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Core LLVM classes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>martin@martin.st
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, rnk@google.com, timshen91@gmail.com, w3cing@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25076" name="attach_25076" title="Reproduction code">attachment 25076</a> <a href="attachment.cgi?id=25076&action=edit" title="Reproduction code">[details]</a></span>
Reproduction code
After <a href="https://reviews.llvm.org/D6594">https://reviews.llvm.org/D6594</a>, applied in
<a href="https://github.com/llvm/llvm-project/commit/a0757d8ebdefa1c54896d70d2a04f68fc23f7916">https://github.com/llvm/llvm-project/commit/a0757d8ebdefa1c54896d70d2a04f68fc23f7916</a>,
compiling some source files for aarch64-windows-msvc fails with a failed assert
"!FoundVal && "Key already in new map?"
This can be reproduced with the attached source file like this:
$ clang -target aarch64-windows-msvc -w -c -O2 wine-preproc.c
clang: ../include/llvm/ADT/DenseMap.h:408: void llvm::DenseMapBase<DerivedT,
KeyT, ValueT, KeyInfoT, BucketT>::moveFromOldBuckets(BucketT*, BucketT*) [with
DerivedT = llvm::DenseMap<llvm::ConstantExpr*, llvm::detail::DenseSetEmpty,
llvm::ConstantUniqueMap<llvm::ConstantExpr>::MapInfo,
llvm::detail::DenseSetPair<llvm::ConstantExpr*> >; KeyT = llvm::ConstantExpr*;
ValueT = llvm::detail::DenseSetEmpty; KeyInfoT =
llvm::ConstantUniqueMap<llvm::ConstantExpr>::MapInfo; BucketT =
llvm::detail::DenseSetPair<llvm::ConstantExpr*>]: Assertion `!FoundVal && "Key
already in new map?"' failed.</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>