[Lldb-commits] [lldb] 32a3428 - [lldb] Fix an unused variable warning

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 20 07:50:29 PST 2019


Author: Pavel Labath
Date: 2019-12-20T16:51:25+01:00
New Revision: 32a34289597c7b0cc60b6c90b4222b44bef302d5

URL: https://github.com/llvm/llvm-project/commit/32a34289597c7b0cc60b6c90b4222b44bef302d5
DIFF: https://github.com/llvm/llvm-project/commit/32a34289597c7b0cc60b6c90b4222b44bef302d5.diff

LOG: [lldb] Fix an unused variable warning

Added: 
    

Modified: 
    lldb/source/Core/FormatEntity.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp
index 5d4dba073743..7aa1eced34f3 100644
--- a/lldb/source/Core/FormatEntity.cpp
+++ b/lldb/source/Core/FormatEntity.cpp
@@ -1762,7 +1762,7 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,
       return false;
     s.PutCString(name);
 
-    if (Block *inline_block = sc->block->GetContainingInlinedBlock()) {
+    if (sc->block->GetContainingInlinedBlock()) {
       if (const InlineFunctionInfo *inline_info =
               sc->block->GetInlinedFunctionInfo()) {
         s.PutCString(" [inlined] ");


        


More information about the lldb-commits mailing list