[cfe-commits] r120108 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Anders Carlsson
andersca at mac.com
Wed Nov 24 11:52:29 PST 2010
Author: andersca
Date: Wed Nov 24 13:52:29 2010
New Revision: 120108
URL: http://llvm.org/viewvc/llvm-project?rev=120108&view=rev
Log:
Fix build.
Modified:
cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.cpp?rev=120108&r1=120107&r2=120108&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Wed Nov 24 13:52:29 2010
@@ -485,8 +485,9 @@
/// getCGRecordLayout - Return record layout info for the given llvm::Type.
const CGRecordLayout &
-CodeGenTypes::getCGRecordLayout(const RecordDecl *TD) const {
+CodeGenTypes::getCGRecordLayout(const RecordDecl *TD) {
const Type *Key = Context.getTagDeclType(TD).getTypePtr();
+
const CGRecordLayout *Layout = CGRecordLayouts.lookup(Key);
if (!Layout) {
// Compute the type information.
More information about the cfe-commits
mailing list