[NFC] Fix unused var in release build

This commit is contained in:
Jordan Rupprecht 2020-09-01 13:05:56 -07:00
parent 0d966ae4b2
commit c90f15d25a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}