work around for llvm 11 bug
MODIFY
llvm_mode/cmplog-instructions-pass.cc
llvm_mode/cmplog-instructions-pass.cc
@@ -237,16 +237,16 @@ bool CmpLogInstructions::hookInstrs(Module &M) {
switch (max_size) {
case 8:
- IRB.CreateCall(cmplogHookIns1, args, "tmp");
+ IRB.CreateCall(cmplogHookIns1, args);
break;
case 16:
- IRB.CreateCall(cmplogHookIns2, args, "tmp");
+ IRB.CreateCall(cmplogHookIns2, args);
break;
case 32:
- IRB.CreateCall(cmplogHookIns4, args, "tmp");
+ IRB.CreateCall(cmplogHookIns4, args);
break;
case 64:
- IRB.CreateCall(cmplogHookIns8, args, "tmp");
+ IRB.CreateCall(cmplogHookIns8, args);
break;
default:
break;

MODIFY
llvm_mode/cmplog-routines-pass.cc
llvm_mode/cmplog-routines-pass.cc
@@ -169,7 +169,7 @@ bool CmpLogRoutines::hookRtns(Module &M) {
args.push_back(v1Pcasted);
args.push_back(v2Pcasted);
- IRB.CreateCall(cmplogHookFn, args, "tmp");
+ IRB.CreateCall(cmplogHookFn, args);
// errs() << callInst->getCalledFunction()->getName() << "\n";

MODIFY
llvm_mode/compare-transform-pass.so.cc
llvm_mode/compare-transform-pass.so.cc
@@ -500,7 +500,7 @@ bool CompareTransform::transformCmps(Module &M, const bool processStrcmp,
load = cur_cmp_IRB.CreateZExt(load, Int32Ty);
std::vector<Value *> args;
args.push_back(load);
- load = cur_cmp_IRB.CreateCall(tolowerFn, args, "tmp");
+ load = cur_cmp_IRB.CreateCall(tolowerFn, args);
load = cur_cmp_IRB.CreateTrunc(load, Int8Ty);
}

work around for llvm 11 bug