diff options
author | John McCall <rjmccall@apple.com> | 2010-09-16 03:16:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-16 03:16:41 +0000 |
commit | 2a8b9a3caa93b1b40782adfd827b581f9ab19a74 (patch) | |
tree | d76ddc701bb11fdbcac857383c2339bf55a636db /clang | |
parent | 58649dc6095d47bbd0d4c56d180d084c3966d30e (diff) | |
download | bcm5719-llvm-2a8b9a3caa93b1b40782adfd827b581f9ab19a74.tar.gz bcm5719-llvm-2a8b9a3caa93b1b40782adfd827b581f9ab19a74.zip |
Further beautification: this pointer can now be typed.
llvm-svn: 114061
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGValue.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h index 04467c564fd..23b358d9ad3 100644 --- a/clang/lib/CodeGen/CGValue.h +++ b/clang/lib/CodeGen/CGValue.h @@ -324,7 +324,7 @@ public: /// An aggregate value slot. class AggValueSlot { /// The address. - uintptr_t AddrAndFlags; + llvm::Value *Addr; // Associated flags. bool VolatileFlag : 1; @@ -336,7 +336,7 @@ public: /// aggregate value is being ignored. static AggValueSlot ignored() { AggValueSlot AV; - AV.AddrAndFlags = 0; + AV.Addr = 0; AV.VolatileFlag = AV.LifetimeFlag = AV.RequiresGCollection = 0; return AV; } @@ -353,7 +353,7 @@ public: bool LifetimeExternallyManaged, bool RequiresGCollection=false) { AggValueSlot AV; - AV.AddrAndFlags = reinterpret_cast<uintptr_t>(Addr); + AV.Addr = Addr; AV.VolatileFlag = Volatile; AV.LifetimeFlag = LifetimeExternallyManaged; AV.RequiresGCollection = RequiresGCollection; @@ -385,11 +385,11 @@ public: } llvm::Value *getAddr() const { - return reinterpret_cast<llvm::Value*>(AddrAndFlags); + return Addr; } bool isIgnored() const { - return AddrAndFlags == 0; + return Addr == 0; } RValue asRValue() const { |