CodeExtractor: Fix assertion with non-0 alloca address spaces
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 19 Oct 2022 04:00:33 +0000 (21:00 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Sun, 23 Oct 2022 22:16:55 +0000 (15:16 -0700)
commit597b9b7e8eaae1fbbab4f2603f1fe99c02f0ff5e
tree8e23096e94cd1816ffd36544875a2713c110c27e
parent827f01c275bec1dc695338719046a12e4a6e096b
CodeExtractor: Fix assertion with non-0 alloca address spaces

emitCallAndSwitchStatement creates placeholder allocas to pass
to these, so the types need to match.
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/test/tools/llvm-extract/address-space-assert.ll [new file with mode: 0644]