Skip to content

Commit a233a49

Browse files
authored
[lldb][DWARFASTParserClang][NFC] Fix comment regarding static data member detection (#68405)
Fixes misleading comment introduced in `f74aaca63202cabb512c78fe19196ff348d436a8`
1 parent 488a62f commit a233a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2878,8 +2878,8 @@ void DWARFASTParserClang::ParseSingleMember(
28782878
attrs.accessibility = eAccessNone;
28792879

28802880
// Handle static members, which are typically members without
2881-
// locations. However, GCC *never* emits DW_AT_data_member_location
2882-
// for static data members of unions.
2881+
// locations. However, GCC doesn't emit DW_AT_data_member_location
2882+
// for any union members (regardless of linkage).
28832883
// Non-normative text pre-DWARFv5 recommends marking static
28842884
// data members with an DW_AT_external flag. Clang emits this consistently
28852885
// whereas GCC emits it only for static data members if not part of an

0 commit comments

Comments
 (0)