[llvm] c8cf27e - Fix a build warning from ea7d208

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 09:17:10 PST 2021


Author: Philip Reames
Date: 2021-03-03T09:16:56-08:00
New Revision: c8cf27e3338b234c1b37987cbd4b958373c97c47

URL: https://github.com/llvm/llvm-project/commit/c8cf27e3338b234c1b37987cbd4b958373c97c47
DIFF: https://github.com/llvm/llvm-project/commit/c8cf27e3338b234c1b37987cbd4b958373c97c47.diff

LOG: Fix a build warning from ea7d208

Added: 
    

Modified: 
    llvm/lib/Analysis/BasicAliasAnalysis.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index d5bf27efb1d2..a7245a97d3a0 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<GEPOperator>(V2)) {
+  if (isa<GEPOperator>(V2)) {
     // Symmetric case to above.
     if (*DecompGEP2.InBounds && DecompGEP1.VarIndices.empty() &&
         V1Size.hasValue() && DecompGEP1.Offset.sle(-V1Size.getValue()) &&


        


More information about the llvm-commits mailing list