From: Ivan A. Kosarev Date: Mon, 18 Dec 2017 16:50:11 +0000 (+0000) Subject: Fix the reference to the now renamed member of TBAAStructField X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3024fc4022efd5d852484c5c1bf57384833790d5;p=clang Fix the reference to the now renamed member of TBAAStructField 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 --- diff --git a/lib/CodeGen/CodeGenTBAA.cpp b/lib/CodeGen/CodeGenTBAA.cpp index 2bc4b8a542..f394ea288d 100644 --- a/lib/CodeGen/CodeGenTBAA.cpp +++ b/lib/CodeGen/CodeGenTBAA.cpp @@ -306,7 +306,7 @@ llvm::MDNode *CodeGenTBAA::getBaseTypeInfoHelper(const Type *Ty) { // Create the struct type node with a vector of pairs (offset, type). SmallVector, 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); }