std::string FieldName = Field->getNameAsString();
+ // Ignore unnamed fields.
+ if (FieldName.empty())
+ continue;
+
// Get the location for the field.
SourceLocation FieldDefLoc = Field->getLocation();
llvm::DICompileUnit FieldDefUnit = getOrCreateCompileUnit(FieldDefLoc);
std::string FieldName = Field->getNameAsString();
+ // Ignore unnamed fields.
+ if (FieldName.empty())
+ continue;
+
// Get the location for the field.
SourceLocation FieldDefLoc = Field->getLocation();
llvm::DICompileUnit FieldDefUnit = getOrCreateCompileUnit(FieldDefLoc);