[llvm] r315279 - Ignore all duplicate frame index expression

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 15:17:22 PDT 2017


On Thu, Oct 12, 2017 at 9:52 AM, Björn Steinbrink <bsteinbr at gmail.com>
wrote:

> Can you check what kind of conflict is this? Two non-fragment
> expressions, or a non-fragment expression conflicting with a fragment
> expression?


This is the reduced test case:

void b() { if (int* c = 0) while (int* c = 0) ; }

Apparently if you declare a variable with the same name and the same type
on the same line in the same scope you get the same DILocalVariable. =D
This seems like a bug in our representation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171012/49e38c82/attachment.html>


More information about the llvm-commits mailing list