diff options
author | van Hauser <vh@thc.org> | 2020-11-02 17:08:05 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-11-02 17:08:05 +0100 |
commit | 80401940e3d522c853c0a46b71744ad3baf43d24 (patch) | |
tree | 761cd22af9d696f0ead65c18459b3c1818f8597c | |
parent | 0863d940fe6d2d872bb83b2e172d61bdebe8576d (diff) | |
download | afl++-80401940e3d522c853c0a46b71744ad3baf43d24.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 7019dd87..b25c34d0 100644 --- a/instrumentation/SanitizerCoveragePCGUARD.so.cc +++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc @@ -915,6 +915,8 @@ GlobalVariable *ModuleSanitizerCoverage::CreateFunctionLocalArrayInSection( Array->setSection(getSectionName(Section)); #if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0) Array->setAlignment(Align(DL->getTypeStoreSize(Ty).getFixedSize())); +#else + Array->setAlignment(8); // cheating #endif GlobalsToAppendToUsed.push_back(Array); GlobalsToAppendToCompilerUsed.push_back(Array); |