[Chapel Merge] Fix segfaults in gpu codegen after the LLVM-13 upg

Branch: refs/heads/main
Revision: 42805c8
Author: daviditen
Link: Unavailable
Log Message:

Merge pull request #19395 from daviditen/llvm-gpu-fix

Fix segfaults in gpu codegen after the LLVM-13 upgrade

[reviewed by @stonea]

The function CreateConstInBoundsGEP2_32 was updated to require a type instead
of allowing NULL and using a default value. Update it with the expected type.

Signed-off-by: David Iten daviditen@users.noreply.github.com

Modified Files:
M compiler/codegen/codegen.cpp

Compare: https://github.com/chapel-lang/chapel/compare/5a73f75a3d7f...42805c8aa0dc