[clang] 318d0ed - Fix warning on unused variables. NFC.

Michael Liao via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 09:21:30 PST 2020


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;


        


More information about the cfe-commits mailing list