diff options
author | van Hauser <vh@thc.org> | 2020-08-14 12:06:00 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-14 12:06:00 +0200 |
commit | 5f0a9c90c83b2fc9cdd8bc583e9843c9bd9d9ecb (patch) | |
tree | 11201080d23e381e3770cedc6c57ce69b7f95961 /llvm_mode/compare-transform-pass.so.cc | |
parent | 9ff9ff2ad2a8b4f66a64f47a3252d13803774cd2 (diff) | |
download | afl++-5f0a9c90c83b2fc9cdd8bc583e9843c9bd9d9ecb.tar.gz |
fixes lots of llvm warnings
Diffstat (limited to 'llvm_mode/compare-transform-pass.so.cc')
-rw-r--r-- | llvm_mode/compare-transform-pass.so.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm_mode/compare-transform-pass.so.cc b/llvm_mode/compare-transform-pass.so.cc index c3bb7f10..acdd0f3b 100644 --- a/llvm_mode/compare-transform-pass.so.cc +++ b/llvm_mode/compare-transform-pass.so.cc @@ -137,7 +137,6 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, bool isStrcasecmp = processStrcasecmp; bool isStrncasecmp = processStrncasecmp; bool isIntMemcpy = true; - bool indirect = false; Function *Callee = callInst->getCalledFunction(); if (!Callee) continue; @@ -264,8 +263,6 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, } - if ((HasStr1 || HasStr2)) indirect = true; - } if (isIntMemcpy) continue; @@ -278,7 +275,6 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, Str1 = StringRef(*val); HasStr1 = true; - indirect = true; // fprintf(stderr, "loaded1 %s\n", Str1.str().c_str()); } else { @@ -288,7 +284,6 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp, Str2 = StringRef(*val); HasStr2 = true; - indirect = true; // fprintf(stderr, "loaded2 %s\n", Str2.str().c_str()); } |