From 2b17c24a03037cb3870b849d0c64f1958308d83d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 18 Jul 2021 23:12:22 +0200 Subject: [PATCH] [SCEV] Fix unused variable warning (NFC) --- llvm/lib/Analysis/ScalarEvolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index b5e0956..cb37958 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -8792,7 +8792,7 @@ static Constant *BuildConstantFromSCEV(const SCEV *V) { if (C2->getType()->isPointerTy()) return nullptr; - if (PointerType *PTy = dyn_cast(C->getType())) { + if (C->getType()->isPointerTy()) { C = ConstantExpr::getGetElementPtr(Type::getInt8Ty(C->getContext()), C, C2); } else { -- 2.7.4