From 9dd450bb781484ca4b870529f89842541045c153 Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 21 Sep 2009 23:43:11 +0000 Subject: Change all the Type::getAsFoo() methods to specializations of Type::getAs(). Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Several more 'leaf' optimizations were introduced. The getAsFoo() methods which imposed extra conditions, like getAsObjCInterfacePointerType(), have been left in place. llvm-svn: 82501 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index fca6ebe..af9f7e9 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1099,7 +1099,7 @@ void CodeGenModule::EmitGlobalFunctionDefinition(GlobalDecl GD) { const FunctionDecl *D = cast(GD.getDecl()); if (const CXXMethodDecl *MD = dyn_cast(D)) { - bool isVariadic = D->getType()->getAsFunctionProtoType()->isVariadic(); + bool isVariadic = D->getType()->getAs()->isVariadic(); Ty = getTypes().GetFunctionType(getTypes().getFunctionInfo(MD), isVariadic); } else { -- cgit v1.1