See https://reviews.llvm.org/D39956 for details.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320994
91177308-0d34-0410-b5e6-
96231b3b80d8
// Create the struct type node with a vector of pairs (offset, type).
SmallVector<std::pair<llvm::MDNode*, uint64_t>, 4> OffsetsAndTypes;
for (const auto &Field : Fields)
- OffsetsAndTypes.push_back(std::make_pair(Field.TBAA, Field.Offset));
+ OffsetsAndTypes.push_back(std::make_pair(Field.Type, Field.Offset));
return MDHelper.createTBAAStructTypeNode(OutName, OffsetsAndTypes);
}