From c8cf27e3338b234c1b37987cbd4b958373c97c47 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Wed, 3 Mar 2021 09:16:56 -0800 Subject: [PATCH] Fix a build warning from ea7d208 --- llvm/lib/Analysis/BasicAliasAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp index d5bf27e..a7245a9 100644 --- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp +++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp @@ -1071,7 +1071,7 @@ AliasResult BasicAAResult::aliasGEP( isBaseOfObject(DecompGEP2.Base)) return NoAlias; - if (const GEPOperator *GEP2 = dyn_cast(V2)) { + if (isa(V2)) { // Symmetric case to above. if (*DecompGEP2.InBounds && DecompGEP1.VarIndices.empty() && V1Size.hasValue() && DecompGEP1.Offset.sle(-V1Size.getValue()) && -- 2.7.4