[Bitcode] Fix constexpr autoupgrade for arrays and structs
authorNikita Popov <npopov@redhat.com>
Wed, 7 Sep 2022 10:46:32 +0000 (12:46 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 7 Sep 2022 10:47:21 +0000 (12:47 +0200)
commitd452d5e2de70a180e5af26dbda40cfb8b2506590
tree8cda25df64463f7ddd78d10a4e7a57d233ccfb71
parent973fec78e935404fb5906a9abcd2f7848f17da62
[Bitcode] Fix constexpr autoupgrade for arrays and structs

While vectors use insertelement, structs and arrays should use
insertvalue.
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/constexpr-to-instr.ll
llvm/test/Bitcode/constexpr-to-instr.ll.bc