[cfe-commits] r62326 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jan 16 09:41:13 PST 2009
Author: fjahanian
Date: Fri Jan 16 11:41:13 2009
New Revision: 62326
URL: http://llvm.org/viewvc/llvm-project?rev=62326&view=rev
Log:
Used a more suitable api to get to the type of a record
in code gen.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=62326&r1=62325&r2=62326&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Jan 16 11:41:13 2009
@@ -692,7 +692,7 @@
const Type *Key =
CGF.getContext().getTagDeclType(
const_cast<TagDecl*>(dyn_cast<TagDecl>(RD))).getTypePtr();
- TypeToSize = Key->getDesugaredType();
+ TypeToSize = QualType(Key->getAsRecordType(), 0);
}
std::pair<uint64_t, unsigned> Info = CGF.getContext().getTypeInfo(TypeToSize);
More information about the cfe-commits
mailing list