diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-16 17:41:13 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-16 17:41:13 +0000 |
| commit | ab654afb2d49a9a7db2727b69708ac479728f2a1 (patch) | |
| tree | 4911bb333255404219c21cb0f2a14057e023959b /lib/CodeGen/CGExprScalar.cpp | |
| parent | 01beed0db79b6a1809955e61e7ac2c30c1a161a4 (diff) | |
| download | clang-ab654afb2d49a9a7db2727b69708ac479728f2a1.tar.gz clang-ab654afb2d49a9a7db2727b69708ac479728f2a1.tar.bz2 clang-ab654afb2d49a9a7db2727b69708ac479728f2a1.tar.xz | |
Used a more suitable api to get to the type of a record
in code gen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 628bfb0788..3b9db6a4bb 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -692,7 +692,7 @@ ScalarExprEmitter::VisitSizeOfAlignOfExpr(const SizeOfAlignOfExpr *E) { 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); |
