more llvm 10.0.0 fixes

This commit is contained in:
van Hauser 2020-11-02 17:21:07 +01:00
parent 80401940e3
commit 26d78ce2ec

View File

@ -916,7 +916,7 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection(
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
#else
Array->setAlignment(8); // cheating
Array->setAlignment(Align(4)); // cheating
#endif
GlobalsToAppendToUsed.push_back(Array);
GlobalsToAppendToCompilerUsed.push_back(Array);