Skip to content

Commit b95ed30

Browse files
committed
[IR] Remove unused variables from #123617
Failed to notice them when landing that patch - apologies!
1 parent e8674af commit b95ed30

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,6 @@ DataFlowSanitizer::getShadowOriginAddress(Value *Addr, Align InstAlignment,
19241924
ShadowLong =
19251925
IRB.CreateAdd(ShadowLong, ConstantInt::get(IntptrTy, ShadowBase));
19261926
}
1927-
IntegerType *ShadowTy = IntegerType::get(*Ctx, ShadowWidthBits);
19281927
Value *ShadowPtr = IRB.CreateIntToPtr(ShadowLong, PointerType::get(*Ctx, 0));
19291928
Value *OriginPtr = nullptr;
19301929
if (shouldTrackOrigins()) {

llvm/lib/Transforms/Utils/ModuleUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ using namespace llvm;
2929
static void appendToGlobalArray(StringRef ArrayName, Module &M, Function *F,
3030
int Priority, Constant *Data) {
3131
IRBuilder<> IRB(M.getContext());
32-
FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false);
3332

3433
// Get the current set of static global constructors and add the new ctor
3534
// to the list.

0 commit comments

Comments
 (0)