Should fix sanitizer-ppc64-linux1 bot.
llvm-svn: 247493
std::type_info *TypeInfo;
};
-#if SANITIZER_LINUX
+#if SANITIZER_LINUX && !defined(__powerpc64__)
bool isValidVptr(void *Vtable) {
// Validate the memory permissions of the vtable pointer and the first
// function pointer in the vtable. They should be r-- or r-x and r-x
}
return false;
}
-#else // !SANITIZER_LINUX
+#else // !SANITIZER_LINUX || __powerpc64__
bool isValidVptr(void *Vtable) {
return true;
}
if config.target_arch.startswith('arm') == False:
config.available_features.add('stable-runtime')
-if config.host_os == 'Linux':
+if config.host_os == 'Linux' and config.target_arch != 'powerpc64':
config.available_features.add('vptr-validation')