[llvm] 56e372b - [Attributor][NFC] Silence unused variable warning

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 27 14:38:50 PDT 2021


Author: Johannes Doerfert
Date: 2021-08-27T16:38:13-05:00
New Revision: 56e372b56e293710f9411cfc63573755f1370f54

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

LOG: [Attributor][NFC] Silence unused variable warning

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 679776898d50b..4da71f6c19caa 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -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


        


More information about the llvm-commits mailing list