Author: Michael Liao
Date: 2020-02-06T12:21:20-05:00
New Revision: 318d0ede572080f18d0106dbc354e11c88329a84

URL: 
https://github.com/llvm/llvm-project/commit/318d0ede572080f18d0106dbc354e11c88329a84
DIFF: 
https://github.com/llvm/llvm-project/commit/318d0ede572080f18d0106dbc354e11c88329a84.diff

LOG: Fix warning on unused variables. NFC.

Added: 
    

Modified: 
    clang/lib/CodeGen/CGDebugInfo.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGDebugInfo.cpp 
b/clang/lib/CodeGen/CGDebugInfo.cpp
index 0e54e9419356..e171082942f6 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -3667,7 +3667,7 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, 
SourceLocation Loc,
   } else {
     Name = Fn->getName();
 
-    if (const auto *BD = dyn_cast<BlockDecl>(D))
+    if (isa<BlockDecl>(D))
       LinkageName = Name;
 
     Flags |= llvm::DINode::FlagPrototyped;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to