This change resolves handles (or corresponding ptr) that all point into a unique global resource by propagating an index into that global resource through control flow. If a unique global resource can't be resolved, an error is reported instead. This specifically resolves all handles that point into the same global resource array. Resolves: https://github.com/llvm/llvm-project/issues/165288 By reporting an error, this is part of resolving https://github.com/llvm/llvm-project/issues/179303.