From 80401940e3d522c853c0a46b71744ad3baf43d24 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Mon, 2 Nov 2020 17:08:05 +0100 Subject: more llvm 10.0.0 fixes --- instrumentation/SanitizerCoveragePCGUARD.so.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc index 7019dd87..b25c34d0 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -915,6 +915,8 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection( Array->setSection(getSectionName(Section)); #if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0) Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize())); +#else + Array->setAlignment(8); // cheating #endif GlobalsToAppendToUsed.push_back(Array); GlobalsToAppendToCompilerUsed.push_back(Array); -- cgit 1.4.1