Skip to content

Commit 2b17c24

Browse files
committed
[SCEV] Fix unused variable warning (NFC)
1 parent 4370514 commit 2b17c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8792,7 +8792,7 @@ static Constant *BuildConstantFromSCEV(const SCEV *V) {
87928792
if (C2->getType()->isPointerTy())
87938793
return nullptr;
87948794

8795-
if (PointerType *PTy = dyn_cast<PointerType>(C->getType())) {
8795+
if (C->getType()->isPointerTy()) {
87968796
C = ConstantExpr::getGetElementPtr(Type::getInt8Ty(C->getContext()),
87978797
C, C2);
87988798
} else {

0 commit comments

Comments
 (0)