r320994 - Fix the reference to the now renamed member of TBAAStructField

Ivan A. Kosarev via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 18 08:50:11 PST 2017


Author: kosarev
Date: Mon Dec 18 08:50:11 2017
New Revision: 320994

URL: http://llvm.org/viewvc/llvm-project?rev=320994&view=rev
Log:
Fix the reference to the now renamed member of TBAAStructField

See https://reviews.llvm.org/D39956 for details.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp?rev=320994&r1=320993&r2=320994&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp Mon Dec 18 08:50:11 2017
@@ -306,7 +306,7 @@ llvm::MDNode *CodeGenTBAA::getBaseTypeIn
     // 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);
   }
 




More information about the cfe-commits mailing list