Closed Quuxplusone closed 3 years ago
Bugzilla Link | PR49097 |
Status | RESOLVED DUPLICATE of bug 46176 |
Importance | P normal |
Reported by | Mandeep Singh Grang (mgrang@codeaurora.org) |
Reported on | 2021-02-08 12:13:15 -0800 |
Last modified on | 2021-02-09 13:28:44 -0800 |
Version | trunk |
Hardware | PC Windows NT |
CC | blitzrakete@gmail.com, dblaikie@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk, rnk@google.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Are you sure this isn't the known MSVC bug for passing overaligned arguments in
debug builds?
https://developercommunity.visualstudio.com/content/problem/1179643/msvc-copies-overaligned-non-trivially-copyable-par.html
Duped into this:
https://developercommunity2.visualstudio.com/t/Incorrect-Code-Gen--Missing-Error/831543
Which is labeled "pending release".
We have pragmas to workaround that issue:
https://github.com/llvm/llvm-project/commit/4e3edef4b8b637c0c76897497eb7c66f00157210
Maybe the workaround wasn't enough.
Thanks for the pointers, Reid. My test case passes with the Visual Studio Preview v16.9.0-pre.4.0. So I guess this is a duplicate of the MSVC bug you pointed to. I will go ahead and mark this as duplicate of https://bugs.llvm.org/show_bug.cgi?id=46176.
_This bug has been marked as a duplicate of bug 46176_
We attempted to work around the bug by applying that pragma in the commit I linked. Do you have that workaround in your version of LLVM? Maybe we just need to apply it to other files where this is an issue, or if the pragma doesn't work, perhaps we could fix the issue by moving from /Od to /O1 in cmake.