mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 01:58:17 +00:00
more llvm 10.0.0 fixes
This commit is contained in:
@ -913,7 +913,9 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection(
|
|||||||
GetOrCreateFunctionComdat(F, TargetTriple, CurModuleUniqueId))
|
GetOrCreateFunctionComdat(F, TargetTriple, CurModuleUniqueId))
|
||||||
Array->setComdat(Comdat);
|
Array->setComdat(Comdat);
|
||||||
Array->setSection(getSectionName(Section));
|
Array->setSection(getSectionName(Section));
|
||||||
|
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
|
||||||
Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
|
Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
|
||||||
|
#endif
|
||||||
GlobalsToAppendToUsed.push_back(Array);
|
GlobalsToAppendToUsed.push_back(Array);
|
||||||
GlobalsToAppendToCompilerUsed.push_back(Array);
|
GlobalsToAppendToCompilerUsed.push_back(Array);
|
||||||
MDNode *MD = MDNode::get(F.getContext(), ValueAsMetadata::get(&F));
|
MDNode *MD = MDNode::get(F.getContext(), ValueAsMetadata::get(&F));
|
||||||
|
Reference in New Issue
Block a user