By using main branch with upstream llvm-13 and changing getBaseName to getName it is working as expected. Thank you @masahi for your inputs.
By using main branch with upstream llvm-13 and changing getBaseName to getName it is working as expected. Thank you @masahi for your inputs.