about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-02 17:08:05 +0100
committervan Hauser <vh@thc.org>2020-11-02 17:08:05 +0100
commit80401940e3d522c853c0a46b71744ad3baf43d24 (patch)
tree761cd22af9d696f0ead65c18459b3c1818f8597c
parent0863d940fe6d2d872bb83b2e172d61bdebe8576d (diff)
downloadafl++-80401940e3d522c853c0a46b71744ad3baf43d24.tar.gz
more llvm 10.0.0 fixes
-rw-r--r--instrumentation/SanitizerCoveragePCGUARD.so.cc2
1 files changed, 2 insertions, 0 deletions
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);