The IsPointer check currently fails for host-associated symbols in OpenMP regions. This causes some failures in semantic checks for pointer association in an OpenMP region. Fix is to use the ultimate symbol in the call to the IsPointer function in CheckPointerAssignment
function in lib/Semantics/pointer-assignment.cpp.
This patch fixes the issue reported by Peixin in https://github.com/flang-compiler/f18-llvm-project/issues/1171#issuecomment-955180002.