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 | f3a8860ee1031a56ba05d9a33840e6a6a9dd3854 (patch) | |
tree | d44e28d27fc630f1256ffc033d9c8221cdf97b1a /clang/lib/CodeGen/CGValue.h | |
parent | 981ca313d7f5ffe701836ff3dc2c13e99e106e77 (diff) | |
download | bcm5719-llvm-f3a8860ee1031a56ba05d9a33840e6a6a9dd3854.tar.gz bcm5719-llvm-f3a8860ee1031a56ba05d9a33840e6a6a9dd3854.zip |
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.
llvm-svn: 124785
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
-rw-r--r-- | clang/lib/CodeGen/CGValue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h index 30c872a8d52..7f77d552032 100644 --- a/clang/lib/CodeGen/CGValue.h +++ b/clang/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; |