From e814f3277a4a78c55b5fd2e614966cb677d7e57e Mon Sep 17 00:00:00 2001 From: "Ivan A. Kosarev" Date: Mon, 18 Dec 2017 16:50:11 +0000 Subject: [PATCH] Fix the reference to the now renamed member of TBAAStructField See https://reviews.llvm.org/D39956 for details. llvm-svn: 320994 --- clang/lib/CodeGen/CodeGenTBAA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp index 2bc4b8a..f394ea2 100644 --- a/clang/lib/CodeGen/CodeGenTBAA.cpp +++ b/clang/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); } -- 2.7.4