diff --git a/llvm/lib/Transforms/Obfuscation/IndirectBranch.cpp b/llvm/lib/Transforms/Obfuscation/IndirectBranch.cpp index dd984e8d1ae2..205b92a1a750 100644 --- a/llvm/lib/Transforms/Obfuscation/IndirectBranch.cpp +++ b/llvm/lib/Transforms/Obfuscation/IndirectBranch.cpp @@ -260,7 +260,7 @@ struct IndirectBranch : public FunctionPass { Value *DecKey = EncKey; if (GXorKey) { - LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey, true); + LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey); if (opt.level() == 1) { DecKey = IRB.CreateXor(EncKey1, XorKey); @@ -274,7 +274,7 @@ struct IndirectBranch : public FunctionPass { if (XorKeys) { Value *XorKeysGEP = IRB.CreateGEP(XorKeys->getValueType(), XorKeys, {Zero, Idx}); - Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP, true); + Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP); XorKey = IRB.CreateNSWNeg(XorKey); XorKey = IRB.CreateXor(XorKey, EncKey1); diff --git a/llvm/lib/Transforms/Obfuscation/IndirectCall.cpp b/llvm/lib/Transforms/Obfuscation/IndirectCall.cpp index 0c1a4e984104..16b22b49a32e 100644 --- a/llvm/lib/Transforms/Obfuscation/IndirectCall.cpp +++ b/llvm/lib/Transforms/Obfuscation/IndirectCall.cpp @@ -260,7 +260,7 @@ struct IndirectCall : public FunctionPass { Value *DecKey = EncKey; if (GXorKey) { - LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey, true); + LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey); if (opt.level() == 1) { DecKey = IRB.CreateXor(EncKey1, XorKey); @@ -274,7 +274,7 @@ struct IndirectCall : public FunctionPass { if (XorKeys) { Value *XorKeysGEP = IRB.CreateGEP(XorKeys->getValueType(), XorKeys, {Zero, Idx}); - Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP, true); + Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP); XorKey = IRB.CreateNSWNeg(XorKey); XorKey = IRB.CreateXor(XorKey, EncKey1); diff --git a/llvm/lib/Transforms/Obfuscation/IndirectGlobalVariable.cpp b/llvm/lib/Transforms/Obfuscation/IndirectGlobalVariable.cpp index 9de01a832a8b..f61e66a56452 100644 --- a/llvm/lib/Transforms/Obfuscation/IndirectGlobalVariable.cpp +++ b/llvm/lib/Transforms/Obfuscation/IndirectGlobalVariable.cpp @@ -254,7 +254,7 @@ struct IndirectGlobalVariable : public FunctionPass { Value *DecKey = EncKey; if (GXorKey) { - LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey, true); + LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey); if (opt.level() == 1) { DecKey = IRB.CreateXor(EncKey1, XorKey); @@ -268,7 +268,7 @@ struct IndirectGlobalVariable : public FunctionPass { if (XorKeys) { Value *XorKeysGEP = IRB.CreateGEP(XorKeys->getValueType(), XorKeys, {Zero, Idx}); - Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP, true); + Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP); XorKey = IRB.CreateNSWNeg(XorKey); XorKey = IRB.CreateXor(XorKey, EncKey1); @@ -307,7 +307,7 @@ struct IndirectGlobalVariable : public FunctionPass { Value *DecKey = EncKey; if (GXorKey) { - LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey, true); + LoadInst *XorKey = IRB.CreateLoad(GXorKey->getValueType(), GXorKey); if (opt.level() == 1) { DecKey = IRB.CreateXor(EncKey1, XorKey); @@ -321,7 +321,7 @@ struct IndirectGlobalVariable : public FunctionPass { if (XorKeys) { Value *XorKeysGEP = IRB.CreateGEP(XorKeys->getValueType(), XorKeys, {Zero, Idx}); - Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP, true); + Value *XorKey = IRB.CreateLoad(intType, XorKeysGEP); XorKey = IRB.CreateNSWNeg(XorKey); XorKey = IRB.CreateXor(XorKey, EncKey1);