From f48d637cd78c85ac890f064a2c2c5d5c075b47ca Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 13 Jan 2023 10:08:01 -0800 Subject: [PATCH] [Analysis] Use isa instead of dyn_cast to suppress an unused variable warning. NFC --- llvm/lib/Analysis/GlobalsModRef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/GlobalsModRef.cpp b/llvm/lib/Analysis/GlobalsModRef.cpp index fcda674..c218b3d 100644 --- a/llvm/lib/Analysis/GlobalsModRef.cpp +++ b/llvm/lib/Analysis/GlobalsModRef.cpp @@ -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(&I)) + if (isa(&I)) continue; // All non-call instructions we use the primary predicates for whether -- 2.7.4