Skip to content

Commit

Permalink
[NFC] Fix unused var in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
rupprecht committed Sep 1, 2020
1 parent 0d966ae commit c90f15d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Analysis/Loads.cpp
Expand Up @@ -516,7 +516,7 @@ bool llvm::canReplacePointersIfEqual(Value *A, Value *B, const DataLayout &DL,
if (auto *C = dyn_cast<Constant>(B)) {
// Do not allow replacing a pointer with a constant pointer, unless it is
// either null or at least one byte is dereferenceable.
APInt OneByte(DL.getPointerTypeSizeInBits(A->getType()), 1);
APInt OneByte(DL.getPointerTypeSizeInBits(Ty), 1);
return C->isNullValue() ||
isDereferenceableAndAlignedPointer(B, Align(1), OneByte, DL, CtxI);
}
Expand Down

0 comments on commit c90f15d

Please sign in to comment.