This has been found while trying to remove the last few places relying on unsigned to convey alignment operations.
This seems to be untested.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
@ChuanqiXu perhaps you could help with a test case for this?
(@gchatelet you could probably find a test case for this by deliberately introducing a patch that uses the wrong size, or maybe makes something other than a pointer type? (like a const type instead?) to find a test case that fails, add extra checking for the alignment and then see if that can verify your fix?)
Thanks for reporting this! You can test this change in coro-debug-coro-frame.ll. You can print the original output then compare it with the output after applying this patch. Then you can fulfill the align field in the CHECKs. Remind me if you need me to precommit it for you.
I've submitted rG543962f024b3068894a8a6ec2d2f0fccea6f5f2d that integrates the bad behavior in the test. I'll rebase this patch to demonstrate the correction.