summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-01-16 17:41:13 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-01-16 17:41:13 +0000
commit195d36cb57a3045f2f3909598d09098692f9a0c2 (patch)
tree7c77a5d5e4f7d241a929f8bb072e03225f483292 /clang/lib/CodeGen
parent032e6dd3c547fd1215a5d6c34fa67ff30b15cdd8 (diff)
downloadbcm5719-llvm-195d36cb57a3045f2f3909598d09098692f9a0c2.tar.gz
bcm5719-llvm-195d36cb57a3045f2f3909598d09098692f9a0c2.zip
Used a more suitable api to get to the type of a record
in code gen. llvm-svn: 62326
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 628bfb07885..3b9db6a4bb8 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud