Fixing an MSVC error from rL280692

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
This commit is contained in:
Dimitar Vlahovski 2016-09-06 12:48:10 +00:00
parent b432a3ed7e
commit e3950574a0
1 changed files with 1 additions and 1 deletions

View 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 {