summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-16 21:08:21 +0000
committerChris Lattner <sabre@nondot.org>2011-06-16 21:08:21 +0000
commite43d745b5cb7c3731627740bde882a5a5b212140 (patch)
treee4e1d417115d35be9a74be320e4ca9075d17b30d /lib
parentae5a0b53782b1219af0017649f0b6a7b5b24752e (diff)
downloadllvm-e43d745b5cb7c3731627740bde882a5a5b212140.tar.gz
llvm-e43d745b5cb7c3731627740bde882a5a5b212140.tar.bz2
llvm-e43d745b5cb7c3731627740bde882a5a5b212140.tar.xz
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')
-rw-r--r--lib/VMCore/Type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 9f75c8b6d1..54fc5c599b 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);