diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -2690,7 +2690,7 @@ bool unused; // TODO: Support float/double static members as well. - if (!attrs.const_value_form && !ct.IsIntegerOrEnumerationType(unused)) + if (!attrs.const_value_form || !ct.IsIntegerOrEnumerationType(unused)) return; llvm::Expected const_value_or_err = ExtractIntFromFormValue(ct, *attrs.const_value_form);