Fixes https://github.com/llvm/llvm-project/issues/69987
corresponding constructor for access checking purposes.
test. llvm-svn: 359155