diff options
author | van Hauser <vh@thc.org> | 2020-08-13 21:46:27 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-13 21:46:27 +0200 |
commit | e9fb5f4cbc9f3514d686ebf813b16829ed73b3da (patch) | |
tree | 43fefed9df0e693d71d6889ce4edc2e3fdade3fe /llvm_mode/split-compares-pass.so.cc | |
parent | 212bb990b7579831baad70735b767dbaf89e9e89 (diff) | |
download | afl++-e9fb5f4cbc9f3514d686ebf813b16829ed73b3da.tar.gz |
fix for llvm < 11
Diffstat (limited to 'llvm_mode/split-compares-pass.so.cc')
-rw-r--r-- | llvm_mode/split-compares-pass.so.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm_mode/split-compares-pass.so.cc b/llvm_mode/split-compares-pass.so.cc index ef3cf7f6..617b55de 100644 --- a/llvm_mode/split-compares-pass.so.cc +++ b/llvm_mode/split-compares-pass.so.cc @@ -1342,7 +1342,9 @@ static RegisterStandardPasses RegisterSplitComparesPass( static RegisterStandardPasses RegisterSplitComparesTransPass0( PassManagerBuilder::EP_EnabledOnOptLevel0, registerSplitComparesPass); +#if LLVM_VERSION_MAJOR >= 11 static RegisterStandardPasses RegisterSplitComparesTransPassLTO( PassManagerBuilder::EP_FullLinkTimeOptimizationLast, registerSplitComparesPass); +#endif |