Mangled names are not meaningful for variables with local storage, and may not be well defined (getting the mangled name for VLA crashes the mangler).
The recommended solution from https://github.com/llvm/llvm-project/issues/49111 is to drop the mangledName for this case.