[Lldb-commits] [lldb] r296738 - Fix MSVC build
    Pavel Labath via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Thu Mar  2 02:35:53 PST 2017
    
    
  
Author: labath
Date: Thu Mar  2 04:35:53 2017
New Revision: 296738
URL: http://llvm.org/viewvc/llvm-project?rev=296738&view=rev
Log:
Fix MSVC build
MSVC (at least the version I am using) does not want to implicitly
capture a const bool variable. Move it into the lambda, as it is not
used outside anyway.
Modified:
    lldb/trunk/source/Commands/CommandObjectFrame.cpp
Modified: lldb/trunk/source/Commands/CommandObjectFrame.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectFrame.cpp?rev=296738&r1=296737&r2=296738&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectFrame.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectFrame.cpp Thu Mar  2 04:35:53 2017
@@ -192,13 +192,13 @@ protected:
       return false;
     }
 
-    const bool qualify_cxx_base_classes = false;
 
     DumpValueObjectOptions::DeclPrintingHelper helper = [&valobj_sp](
         ConstString type, ConstString var, const DumpValueObjectOptions &opts,
         Stream &stream) -> bool {
       const ValueObject::GetExpressionPathFormat format = ValueObject::
           GetExpressionPathFormat::eGetExpressionPathFormatHonorPointers;
+      const bool qualify_cxx_base_classes = false;
       valobj_sp->GetExpressionPath(stream, qualify_cxx_base_classes, format);
       stream.PutCString(" =");
       return true;
    
    
More information about the lldb-commits
mailing list