When applying MemorySanitizer to an OpenMP application, msan complains about uninitialized access for these variables, which are assigned in assembler code. With these changes, I could successfully apply MemorySanitizer to an OpenMP application.
If the initialization is considered harmful, an alternative would be to wrap the initialization in
#if defined(__has_feature) # if __has_feature(memory_sanitizer) // code that builds only under MemorySanitizer # endif #endif