[Analysis] Use isa instead of dyn_cast to suppress an unused variable warning. NFC
authorCraig Topper <craig.topper@sifive.com>
Fri, 13 Jan 2023 18:08:01 +0000 (10:08 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 13 Jan 2023 18:40:25 +0000 (10:40 -0800)
llvm/lib/Analysis/GlobalsModRef.cpp

index fcda674..c218b3d 100644 (file)
@@ -592,7 +592,7 @@ void GlobalsAAResult::AnalyzeCallGraph(CallGraph &CG, Module &M) {
 
         // We handle calls specially because the graph-relevant aspects are
         // handled above.
-        if (auto *Call = dyn_cast<CallBase>(&I))
+        if (isa<CallBase>(&I))
           continue;
 
         // All non-call instructions we use the primary predicates for whether