[Attributor][NFC] Silence unused variable warning
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 27 Aug 2021 21:37:51 +0000 (16:37 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Fri, 27 Aug 2021 21:38:13 +0000 (16:38 -0500)
llvm/lib/Transforms/IPO/AttributorAttributes.cpp

index 6797768..4da71f6 100644 (file)
@@ -7680,7 +7680,7 @@ void AAMemoryLocationImpl::categorizePtrValue(
     assert(!isa<GEPOperator>(Obj) && "GEPs should have been stripped.");
     if (isa<UndefValue>(Obj))
       continue;
-    if (auto *Arg = dyn_cast<Argument>(Obj)) {
+    if (isa<Argument>(Obj)) {
       // TODO: For now we do not treat byval arguments as local copies performed
       // on the call edge, though, we should. To make that happen we need to
       // teach various passes, e.g., DSE, about the copy effect of a byval. That