diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 551c25f07c3..75572a7ba20 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -2624,7 +2624,6 @@ const SCEV *ScalarEvolution::createNodeForGEP(GEPOperator *GEP) { // Getelementptr indicies are signed. LocalOffset = getTruncateOrSignExtend(LocalOffset, IntPtrTy); // Lower "inbounds" GEPs to NSW arithmetic. - bool HasNSW = GEP->isInBounds(); LocalOffset = getMulExpr(LocalOffset, getAllocSizeExpr(*GTI), /*HasNUW=*/false, /*HasNSW=*/InBounds); TotalOffset = getAddExpr(TotalOffset, LocalOffset,