diff options
author | van Hauser <vh@thc.org> | 2020-11-02 16:24:16 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-11-02 16:24:16 +0100 |
commit | 0863d940fe6d2d872bb83b2e172d61bdebe8576d (patch) | |
tree | e158a1404328bb9df0708c0c0be716aa9b63ee5e | |
parent | 7d944e95125b58b66d46eedef9bfb3044179d9a7 (diff) | |
download | afl++-0863d940fe6d2d872bb83b2e172d61bdebe8576d.tar.gz |
more llvm 10.0.0 fixes
-rw-r--r-- | instrumentation/SanitizerCoveragePCGUARD.so.cc | 2 |
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)); |