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:
@ -916,7 +916,7 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection(
|
|||||||
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
|
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
|
||||||
Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
|
Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
|
||||||
#else
|
#else
|
||||||
Array->setAlignment(8); // cheating
|
Array->setAlignment(Align(4)); // cheating
|
||||||
#endif
|
#endif
|
||||||
GlobalsToAppendToUsed.push_back(Array);
|
GlobalsToAppendToUsed.push_back(Array);
|
||||||
GlobalsToAppendToCompilerUsed.push_back(Array);
|
GlobalsToAppendToCompilerUsed.push_back(Array);
|
||||||
|
Reference in New Issue
Block a user