diff options
author | John McCall <rjmccall@apple.com> | 2011-02-03 08:15:49 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-03 08:15:49 +0000 |
commit | 5808ce43f8d7e71f5acacc9ca320268c4f37565a (patch) | |
tree | 50a9b47a2ac607cfe51b3498125d8d4b07667e17 /lib/CodeGen/CGValue.h | |
parent | 553304523bcce281aa3b1afe0f84ae34a90a3c86 (diff) |
More capturing of 'this': implicit member expressions. Getting that
right for anonymous struct/union members led to me discovering some
seemingly broken code in that area of Sema, which I fixed, partly by
changing the representation of member pointer constants so that
IndirectFieldDecls aren't expanded. This led to assorted cleanups with
member pointers in CodeGen, and while I was doing that I saw some random
other things to clean up.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGValue.h')
-rw-r--r-- | lib/CodeGen/CGValue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGValue.h b/lib/CodeGen/CGValue.h index 30c872a8d5..7f77d55203 100644 --- a/lib/CodeGen/CGValue.h +++ b/lib/CodeGen/CGValue.h @@ -254,7 +254,7 @@ public: static LValue MakeAddr(llvm::Value *V, QualType T, unsigned Alignment, ASTContext &Context, llvm::MDNode *TBAAInfo = 0) { - Qualifiers Quals = Context.getCanonicalType(T).getQualifiers(); + Qualifiers Quals = T.getQualifiers(); Quals.setObjCGCAttr(Context.getObjCGCAttrKind(T)); LValue R; |