According to the OpenMP standard, variables with static storage duration are predetermined as shared. Add a check when creating implicit symbols for OpenMP to fix them erroneously getting set to firstprivate. Fixes llvm#140732. --------- Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>