diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-16 21:08:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-16 21:08:21 +0000 |
commit | e43d745b5cb7c3731627740bde882a5a5b212140 (patch) | |
tree | e4e1d417115d35be9a74be320e4ca9075d17b30d /lib/VMCore | |
parent | ae5a0b53782b1219af0017649f0b6a7b5b24752e (diff) | |
download | external_llvm-e43d745b5cb7c3731627740bde882a5a5b212140.zip external_llvm-e43d745b5cb7c3731627740bde882a5a5b212140.tar.gz external_llvm-e43d745b5cb7c3731627740bde882a5a5b212140.tar.bz2 |
tidy up some comments, store the 'isvararg' bit for FunctionType in
the SubclassData field, saving a word.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 9f75c8b..54fc5c5 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -473,11 +473,11 @@ bool FunctionType::isValidArgumentType(const Type *ArgTy) { FunctionType::FunctionType(const Type *Result, ArrayRef<const Type*> Params, bool IsVarArgs) - : DerivedType(Result->getContext(), FunctionTyID), isVarArgs(IsVarArgs) { + : DerivedType(Result->getContext(), FunctionTyID) { ContainedTys = reinterpret_cast<PATypeHandle*>(this+1); NumContainedTys = Params.size() + 1; // + 1 for result type assert(isValidReturnType(Result) && "invalid return type for function"); - + setSubclassData(IsVarArgs); bool isAbstract = Result->isAbstract(); new (&ContainedTys[0]) PATypeHandle(Result, this); |