diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-06-09 23:32:20 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-06-09 23:32:20 +0000 |
commit | 16bf89ecb2527fccac35afdb28771eb84f244eee (patch) | |
tree | eb3b1223418d5dc33b94cbea24d58646948324f1 /llvm/lib/IR/Value.cpp | |
parent | cd68ae3f108cc0d47d7b11396e74b867608d6f1e (diff) | |
download | bcm5719-llvm-16bf89ecb2527fccac35afdb28771eb84f244eee.tar.gz bcm5719-llvm-16bf89ecb2527fccac35afdb28771eb84f244eee.zip |
Reorder Value and User fields to save 8 bytes of padding on 64-bit
Reviewered by: rafael
Differential Revision: http://reviews.llvm.org/D4073
llvm-svn: 210501
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index cc599745d52..f392512c3e9 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -38,13 +38,12 @@ using namespace llvm; static inline Type *checkType(Type *Ty) { assert(Ty && "Value defined with a null type: Error!"); - return const_cast<Type*>(Ty); + return Ty; } Value::Value(Type *ty, unsigned scid) - : SubclassID(scid), HasValueHandle(0), - SubclassOptionalData(0), SubclassData(0), VTy((Type*)checkType(ty)), - UseList(nullptr), Name(nullptr) { + : VTy(checkType(ty)), UseList(nullptr), Name(nullptr), SubclassID(scid), + HasValueHandle(0), SubclassOptionalData(0), SubclassData(0) { // FIXME: Why isn't this in the subclass gunk?? // Note, we cannot call isa<CallInst> before the CallInst has been // constructed. |