aboutsummaryrefslogtreecommitdiff
path: root/instrumentation/SanitizerCoveragePCGUARD.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-02 17:21:07 +0100
committervan Hauser <vh@thc.org>2020-11-02 17:21:07 +0100
commit26d78ce2eca33d58e1195b5e733c850496c57cec (patch)
tree9cdb66f46ad2095d818a75b59c743f6a0d90a0ef /instrumentation/SanitizerCoveragePCGUARD.so.cc
parent80401940e3d522c853c0a46b71744ad3baf43d24 (diff)
downloadAFLplusplus-26d78ce2eca33d58e1195b5e733c850496c57cec.tar.gz
more llvm 10.0.0 fixes
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
-rw-r--r--instrumentation/SanitizerCoveragePCGUARD.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc
index b25c34d0..934db3de 100644
--- a/instrumentation/SanitizerCoveragePCGUARD.so.cc
+++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc
@@ -916,7 +916,7 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection(
#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize()));
#else
- Array->setAlignment(8); // cheating
+ Array->setAlignment(Align(4)); // cheating
#endif
GlobalsToAppendToUsed.push_back(Array);
GlobalsToAppendToCompilerUsed.push_back(Array);