Author: Raphael Isemann Date: 2020-05-07T17:52:12+02:00 New Revision: d7c2c2ed79abd5446f8b485fe8249e1d3b78488d
URL: https://github.com/llvm/llvm-project/commit/d7c2c2ed79abd5446f8b485fe8249e1d3b78488d DIFF: https://github.com/llvm/llvm-project/commit/d7c2c2ed79abd5446f8b485fe8249e1d3b78488d.diff LOG: [lldb][NFC] Also initialize language_flags in ValueObject::Dereference We currently rely on the TypeSystem implementation to initialize this value with 0 in the GetChildCompilerTypeAtIndex call below. Let's just initialize this variable like the rest. Added: Modified: lldb/source/Core/ValueObject.cpp Removed: ################################################################################ diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 9e20ba76dccb..f80e86fc195b 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -2810,7 +2810,7 @@ ValueObjectSP ValueObject::Dereference(Status &error) { const bool transparent_pointers = false; CompilerType compiler_type = GetCompilerType(); CompilerType child_compiler_type; - uint64_t language_flags; + uint64_t language_flags = 0; ExecutionContext exe_ctx(GetExecutionContextRef()); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits