about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-02 16:24:16 +0100
committervan Hauser <vh@thc.org>2020-11-02 16:24:16 +0100
commit0863d940fe6d2d872bb83b2e172d61bdebe8576d (patch)
treee158a1404328bb9df0708c0c0be716aa9b63ee5e
parent7d944e95125b58b66d46eedef9bfb3044179d9a7 (diff)
downloadafl++-0863d940fe6d2d872bb83b2e172d61bdebe8576d.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 b8e3570a..7019dd87 100644
--- a/instrumentation/SanitizerCoveragePCGUARD.so.cc
+++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc
@@ -913,7 +913,9 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection(
             GetOrCreateFunctionComdat(F, TargetTriple, CurModuleUniqueId))
       Array->setComdat(Comdat);
   Array->setSection(getSectionName(Section));
+#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
   Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
+#endif
   GlobalsToAppendToUsed.push_back(Array);
   GlobalsToAppendToCompilerUsed.push_back(Array);
   MDNode *MD = MDNode::get(F.getContext(), ValueAsMetadata::get(&F));