From https://github.com/llvm/llvm-project/pull/183172#discussion_r2918524548: Assigning and scoping the type of a local variable was duplicated in `S_BPREL32`, `S_REGREL32` (and now) `S_REGREL32_INDIR`. I moved these into a separate method in this PR. `S_LOCAL` shares a similar part, but not the exact one. There, it's not checked if the type element has a parent scope (`Element->getParentScope()`). As all these records represent a local variable (or a parameter/this), I figured this was an oversight.