Fixing an MSVC error from rL280692
authorDimitar Vlahovski <dvlahovski@google.com>
Tue, 6 Sep 2016 12:48:10 +0000 (12:48 +0000)
committerDimitar Vlahovski <dvlahovski@google.com>
Tue, 6 Sep 2016 12:48:10 +0000 (12:48 +0000)
MSVC emits an error when one uses a const variable in a lambda without
capturing it.

gcc and clang don't emit an error in this scenario.

llvm-svn: 280707

lldb/source/Commands/CommandObjectFrame.cpp

index d508bf4..a8e73fb 100644 (file)
@@ -218,7 +218,7 @@ protected:
 
         const bool qualify_cxx_base_classes = false;
 
-        DumpValueObjectOptions::DeclPrintingHelper helper = [&valobj_sp](ConstString type,
+        DumpValueObjectOptions::DeclPrintingHelper helper = [&valobj_sp, qualify_cxx_base_classes](ConstString type,
                                                                          ConstString var,
                                                                          const DumpValueObjectOptions &opts,
                                                                          Stream &stream) -> bool {