diff options
author | Pavel Labath <labath@google.com> | 2017-03-02 10:35:53 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-03-02 10:35:53 +0000 |
commit | 5d1f711a551584af28c64962782e20c7eece3a41 (patch) | |
tree | 7d81a5ec037ce44113f4700cc605a21a8427e5f2 /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 4c18c3743f141c0a34d6192e7b194b90ffaef19f (diff) | |
download | bcm5719-llvm-5d1f711a551584af28c64962782e20c7eece3a41.tar.gz bcm5719-llvm-5d1f711a551584af28c64962782e20c7eece3a41.zip |
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.
llvm-svn: 296738
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 701357f41ac..495a080fa01 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -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; |