[NVPTX] Fix DwarfFrameBase construction (#101000)
authorNikita Popov <npopov@redhat.com>
Mon, 29 Jul 2024 20:46:18 +0000 (22:46 +0200)
committerTobias Hieta <tobias@hieta.se>
Tue, 30 Jul 2024 10:01:33 +0000 (12:01 +0200)
commit63d44ea32a28ed49e99572ca46b03eb92706433e
treec56df4f912abc1fab9854d10b58310d10ae0a5a5
parent392b77d58a91049a155f3390ec16941a848aa766
[NVPTX] Fix DwarfFrameBase construction (#101000)

The `{0}` here was initializing the first union member `Register`,
rather than the union member used by CFA, which is `Offset`. Prior to
https://github.com/llvm/llvm-project/pull/99263 this was harmless, but
now they have different layout, leading to test failures on some
platforms (at least i686 and s390x).

(cherry picked from commit 842a332f11f53c698fa0560505e533ecdca28876)
llvm/lib/Target/NVPTX/NVPTXFrameLowering.cpp