[Clang][CodeGen][RISCV] Fix hard float ABI test cases with empty struct
authorLuís Marques <luismarques@lowrisc.org>
Mon, 7 Dec 2020 23:50:42 +0000 (23:50 +0000)
committerLuís Marques <luismarques@lowrisc.org>
Tue, 8 Dec 2020 09:19:05 +0000 (09:19 +0000)
commitfa8f5bfa4e8cff042c9730320c74e97fab152ae1
treee41759a20ab7b89b318647dbddbebd9a24c7a679
parentca93f9abdc0abc96ca8fb7999549a50aadd95caf
[Clang][CodeGen][RISCV] Fix hard float ABI test cases with empty struct

The code seemed not to account for the field 1 offset.

Differential Revision: https://reviews.llvm.org/D91270
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGen/riscv32-ilp32d-abi.cpp