diff options
author | John McCall <rjmccall@apple.com> | 2010-09-03 01:26:39 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-03 01:26:39 +0000 |
commit | 0d635f53a8cfdeb98ff41494f0302c7a4001e665 (patch) | |
tree | 0c667f1be3662014f77179049b0218bfcfeb8a3f /clang/lib/CodeGen/CGCall.cpp | |
parent | 0389df4a45c46303a4070a8008ab1322fa315acc (diff) | |
download | bcm5719-llvm-0d635f53a8cfdeb98ff41494f0302c7a4001e665.tar.gz bcm5719-llvm-0d635f53a8cfdeb98ff41494f0302c7a4001e665.zip |
Re-commit r112916 with an additional fix for the self-host failures.
I've audited the remaining getFunctionInfo call sites.
llvm-svn: 112936
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 6072c1c499d..f698d146f1b 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -117,6 +117,9 @@ const CGFunctionInfo &CodeGenTypes::getFunctionInfo(const CXXRecordDecl *RD, const CGFunctionInfo &CodeGenTypes::getFunctionInfo(const CXXMethodDecl *MD) { llvm::SmallVector<CanQualType, 16> ArgTys; + assert(!isa<CXXConstructorDecl>(MD) && "wrong method for contructors!"); + assert(!isa<CXXDestructorDecl>(MD) && "wrong method for destructors!"); + // Add the 'this' pointer unless this is a static method. if (MD->isInstance()) ArgTys.push_back(GetThisType(Context, MD->getParent())); |