[llvm] 2b17c24 - [SCEV] Fix unused variable warning (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 18 14:12:44 PDT 2021
Author: Nikita Popov
Date: 2021-07-18T23:12:22+02:00
New Revision: 2b17c24a03037cb3870b849d0c64f1958308d83d
URL: https://github.com/llvm/llvm-project/commit/2b17c24a03037cb3870b849d0c64f1958308d83d
DIFF: https://github.com/llvm/llvm-project/commit/2b17c24a03037cb3870b849d0c64f1958308d83d.diff
LOG: [SCEV] Fix unused variable warning (NFC)
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index b5e09568ccb0..cb37958aca4d 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<PointerType>(C->getType())) {
+ if (C->getType()->isPointerTy()) {
C = ConstantExpr::getGetElementPtr(Type::getInt8Ty(C->getContext()),
C, C2);
} else {
More information about the llvm-commits
mailing list