projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8bd534
)
[Analysis] Use isa instead of dyn_cast to suppress an unused variable warning. NFC
author
Craig Topper
<craig.topper@sifive.com>
Fri, 13 Jan 2023 18:08:01 +0000
(10:08 -0800)
committer
Craig Topper
<craig.topper@sifive.com>
Fri, 13 Jan 2023 18:40:25 +0000
(10:40 -0800)
llvm/lib/Analysis/GlobalsModRef.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/GlobalsModRef.cpp
b/llvm/lib/Analysis/GlobalsModRef.cpp
index
fcda674
..
c218b3d
100644
(file)
--- 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
<CallBase>(&I))
+ if (
isa
<CallBase>(&I))
continue;
// All non-call instructions we use the primary predicates for whether